/* Case studies. Every content class is prefixed c- by _tools/cases.py, so this file owns them outright. */
.case section { position: relative; padding: clamp(4.5rem, 11vh, 7rem) 0; border-top: var(--line); background: var(--paper); }
.case section.c-alt { background: var(--cream); }
.case .c-wrap { padding: 0 var(--gut); }
.case .c-narrow { max-width: 980px; margin: 0 auto; }
.c-inv { filter: none; }

/* hero */
.case section.c-hero { padding: calc(68px + clamp(2rem, 6vh, 4rem)) 0 clamp(3rem, 7vh, 4.5rem); border-top: 0; }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.c-eyebrow { display: inline-flex; align-items: center; gap: .7rem; padding: .4rem .9rem .4rem .5rem; border: var(--line); border-radius: 999px; background: #fff; box-shadow: var(--sh-sm); font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.c-eyebrow img { height: 26px; width: auto; max-width: 120px; object-fit: contain; }
.c-hero h1 { margin-top: 1.3rem; font-size: clamp(2.3rem, 1rem + 3.4vw, 4.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.c-hero h1 .c-hl { font-size: 1.06em; line-height: 0; }
.c-hl { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding: 0 .06em; background: linear-gradient(transparent 60%, var(--yellow) 60% 94%, transparent 94%) no-repeat 0 0 / var(--hlw, 100%) 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.c-hl.c-pink { background-image: linear-gradient(transparent 60%, #ffc2d9 60% 94%, transparent 94%); }
.case:not(.cx) .c-hero h1 .c-hl { animation: hlDraw .9s var(--ease-out) .35s both; }
.case:not(.cx) .c-hero h1 .c-hl + .c-hl, .case:not(.cx) .c-hero h1 .c-hl ~ .c-hl { animation-delay: .75s; }
@keyframes hlDraw { from { background-size: 0% 100%; } }
.c-sub { margin-top: 1.3rem; max-width: 58ch; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.c-trustline { margin-top: 1rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .02em; color: var(--muted); max-width: 64ch; line-height: 1.7; }
.c-trustline b { color: var(--ink); }
.c-anon { margin-top: 1rem; padding: .6rem .8rem; border: 1.5px dashed rgba(13, 20, 33, .3); border-radius: 10px; font-size: .84rem; color: var(--ink-2); max-width: 60ch; }
.c-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1.8rem; }
.btn.c-ghost { background: #fff; }
.c-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.c-pill { padding: .3rem .7rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 700; }
.c-pill.c-lime { background: var(--mint); }
.c-hero-visual { position: relative; }
.c-frame { display: block; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); background: #fff; transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease-out); }
.c-frame img { display: block; width: 100%; height: auto; }
.c-floatchip { position: absolute; left: -1.2rem; bottom: 1.6rem; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: var(--line); border-radius: 14px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); animation: bob 3.2s ease-in-out infinite; }
.c-floatchip .c-ci { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.c-floatchip .c-ci svg { width: 16px; height: 16px; }
.c-floatchip b { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.c-floatchip span span { font-size: .78rem; color: var(--ink-2); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.c-bento-stats { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: .8rem; margin-top: clamp(2.5rem, 6vh, 3.5rem); }
.c-bstat { padding: 1.1rem 1.1rem 1.2rem; border: var(--line); border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.c-bstat.c-hero-tile { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--yellow); }
.c-bstat.c-cool { background: #d6f7ec; }
.c-badge { display: inline-block; margin-bottom: .6rem; padding: .2rem .55rem; border-radius: 6px; background: var(--yellow); color: var(--ink); font-family: var(--f-mono); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.c-n { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.c-hero-tile .c-n { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.6rem); color: var(--yellow); }
.c-l { margin-top: .5rem; font-size: .86rem; color: var(--ink-2); line-height: 1.35; }
.c-hero-tile .c-l { color: rgba(255, 253, 247, .75); }

/* sticky chapter bar */
.c-toc { position: sticky; top: 68px; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: var(--line); }
.c-toc-inner { overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut); }
.c-toc-inner::-webkit-scrollbar { display: none; }
.c-toc ul { display: flex; gap: .3rem; padding: .55rem 0; width: max-content; }
.c-toc a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .84rem; white-space: nowrap; transition: background-color .2s; }
.c-toc a .c-i { font-family: var(--f-mono); font-size: .62rem; color: var(--muted); }
.c-toc a:hover { background: var(--cream); }
.c-toc a.on { background: var(--ink); color: var(--paper); }
.c-toc a.on .c-i { color: var(--yellow); }
.c-toc a.read .c-i { color: var(--mint-d); }
.c-toc-bar { position: absolute; left: 0; bottom: -2px; height: 3px; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* chapter heads */
.c-shead { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: end; margin-bottom: 1.6rem; }
.c-snum { font-size: clamp(3.4rem, 2rem + 4vw, 6.4rem); font-weight: 800; letter-spacing: -.07em; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.c-shead.on .c-snum { color: var(--yellow); transition: color .6s .15s; }
.c-section-label { font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.c-section-label.c-cool { color: var(--mint-d); }
.c-t { margin-top: .4rem; font-size: var(--t-d2); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.c-lead { max-width: 70ch; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1.8rem; }
.case h3 { font-weight: 800; letter-spacing: -.025em; }
.c-wrap > h3 { margin: 2.6rem 0 1rem; font-size: 1.5rem; }

/* client */
.c-glance { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.2rem; }
.c-card { padding: 1.4rem; border: var(--line); border-radius: 20px; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.c-body p { color: var(--ink-2); font-size: 1.05rem; }
.c-body p + p { margin-top: .9rem; }
.c-person { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(13, 20, 33, .12); }
.c-face { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: var(--line); display: block; }
.c-face img { width: 100%; height: 100%; object-fit: cover; }
.c-sven-pic { flex: none; width: 56px; height: 56px; border-radius: 50%; border: var(--line); background-repeat: no-repeat; background-size: 100px auto; background-position: -26px -16px; }
.c-nm { font-weight: 800; }
.c-rl { font-size: .84rem; color: var(--muted); }
.c-meta { display: grid; gap: .1rem; margin-top: .8rem; }
.c-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed rgba(13, 20, 33, .15); font-size: .9rem; }
.c-row:last-child { border-bottom: 0; }
.c-k { font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.c-v a { color: var(--ink); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* before / after, side by side */
.c-ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.c-ba-col { padding: 1.4rem; border: var(--line); border-radius: 22px; }
.c-ba-col.c-before { background: #fff; }
.c-ba-col.c-after { background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--mint); }
.c-ba-col .c-tag, .c-vcard .c-tag { display: inline-block; font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 6px; }
.c-before .c-tag { background: #ffe6f0; color: #c2185b; } .c-after .c-tag { background: var(--mint); color: var(--ink); }
.c-ba-col h3 { margin: .7rem 0 .9rem; font-size: 1.45rem; }
.c-ba-col ul, .c-list { display: grid; gap: .55rem; }
.c-ba-col li, .c-list li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.4; }
.c-mk { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-top: 1px; font-size: .7rem; font-weight: 800; border: 2px solid currentColor; }
.c-mk svg { width: 12px; height: 12px; }
.c-before li { color: var(--ink-2); } .c-before .c-mk { color: #c2185b; background: #ffe6f0; border-color: var(--ink); }
.c-after li { color: rgba(255, 253, 247, .9); } .c-after .c-mk { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.case .c-ba-col li { opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .6s var(--spring); transition-delay: calc(var(--k, 0) * 70ms); }
.case .c-ba.on .c-ba-col li { opacity: 1; transform: none; }
.c-ba-arrow { display: grid; place-items: center; }
.c-ba-arrow span { display: grid; place-items: center; width: 52px; height: 52px; border: var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.c-ba-arrow span::before { content: "→"; font-weight: 800; font-size: 1.3rem; }
.c-ba-arrow svg { display: none; }
.c-list.c-two { grid-template-columns: 1fr 1fr; gap: .8rem; }
.c-list li { padding: .9rem 1rem; border: var(--line); border-radius: 14px; background: #fff; font-weight: 600; }
.c-list .c-mk { color: var(--ink); background: var(--yellow); border-color: var(--ink); }

/* approach: two sides and a sync */
.c-contract { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.c-side { padding: 1.3rem; border: var(--line); border-radius: 20px; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.c-side .c-tag img { height: 30px; width: auto; max-width: 150px; }
.c-side p { margin-top: .8rem; color: var(--ink-2); }
.c-sync { display: grid; justify-items: center; gap: .4rem; }
.c-glyph { position: relative; width: 70px; height: 4px; background: var(--ink); border-radius: 2px; }
.c-glyph::after { content: ""; position: absolute; top: -5px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); animation: syncDot 1.8s ease-in-out infinite; }
@keyframes syncDot { 0% { left: 0; } 50% { left: calc(100% - 14px); } 100% { left: 0; } }
.c-glyph svg { display: none; }
.c-cap { font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* mapped before/after images */
.c-bamap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.c-bamap-item { display: grid; gap: .7rem; }
.c-bamap-head { display: flex; align-items: center; gap: .6rem; }
.c-bamap-badge { font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 6px; border: 1.5px solid var(--ink); }
.c-bamap-badge.c-before { background: #ffe6f0; } .c-bamap-badge.c-after { background: var(--mint); }
.c-bamap-t { font-weight: 800; }
.c-bamap-frame, .c-shotone .c-frame { border: var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ink); cursor: zoom-in; }
.c-bamap-frame img { width: 100%; height: auto; display: block; }
.c-bamap-note { font-size: .9rem; color: var(--ink-2); }
.c-shotone { margin-bottom: 2rem; }
.c-shotone .c-frame { transform: none; }

/* solution blocks */
.c-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.c-block-card { padding: 1.3rem; border: var(--line); border-radius: 20px; background: #fff; box-shadow: 5px 5px 0 var(--ink); transition: transform .5s var(--spring); }
.c-block-card:hover { transform: translate(-3px, -3px); }
.c-block-card.c-feat { background: var(--yellow); }
.c-block-card.c-wide { grid-column: span 2; }
.c-ic { display: grid; place-items: center; width: 44px; height: 44px; border: var(--line); border-radius: 12px; background: var(--paper); }
.c-ic svg { width: 22px; height: 22px; }
.c-block-card h3 { margin: .8rem 0 .4rem; font-size: 1.2rem; }
.c-block-card p { color: var(--ink-2); font-size: .94rem; }
.c-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.c-shot { position: relative; border: var(--line); border-radius: 16px; overflow: hidden; background: var(--cream); box-shadow: 4px 4px 0 var(--ink); cursor: zoom-in; aspect-ratio: 16 / 10; }
.c-shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease-out); }
.c-shot:hover img { transform: scale(1.04); }
.c-shot .c-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--muted); font-size: .85rem; }
.c-shot .c-cap { position: absolute; z-index: 2; left: .6rem; bottom: .6rem; padding: .25rem .55rem; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: .66rem; }

/* steps + sequence */
.c-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.c-steps li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.2rem; border: var(--line); border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.c-sn { display: grid; place-items: center; width: 40px; height: 40px; border: var(--line); border-radius: 12px; background: var(--yellow); font-family: var(--f-mono); font-weight: 700; }
.c-steps li:nth-child(3n+2) .c-sn { background: var(--mint); } .c-steps li:nth-child(3n) .c-sn { background: var(--blue); }
.c-steps h3 { font-size: 1.1rem; } .c-steps p { margin-top: .3rem; color: var(--ink-2); font-size: .92rem; }
.c-seq { display: grid; gap: 1.4rem; }
.c-seq-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.6rem; align-items: center; padding: 1.2rem; border: var(--line); border-radius: 22px; background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.c-seq-item:nth-child(even) .c-seq-shot { order: 2; }
.c-seq-shot { position: relative; border: var(--line); border-radius: 14px; overflow: hidden; background: var(--cream); cursor: zoom-in; min-height: 120px; }
.c-seq-shot img { display: block; width: 100%; height: auto; }
.c-seq-shot .c-ph { display: none; place-items: center; min-height: 160px; padding: 1rem; color: var(--muted); }
.c-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border: var(--line); border-radius: 50%; background: var(--yellow); font-family: var(--f-mono); font-weight: 700; }
.c-seq-info h3 { margin: .6rem 0 .4rem; font-size: 1.35rem; }
.c-seq-info p { color: var(--ink-2); }
.c-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .9rem; }
.c-flow span { padding: .25rem .6rem; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--f-mono); font-size: .68rem; font-weight: 700; background: var(--paper); }
.c-flow b { color: var(--muted); }
.c-flow span.lit { background: var(--yellow); }

/* value */
.c-vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.c-vcard { padding: 1.3rem; border: var(--line); border-radius: 20px; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.c-vcard .c-tag { background: var(--cream); border: 1.5px solid var(--ink); }
.c-vcard h3 { margin: .7rem 0 .4rem; font-size: 1.2rem; }
.c-vcard p { color: var(--ink-2); font-size: .94rem; }

/* quote */
.c-quote { position: relative; padding: clamp(1.6rem, 4vw, 2.6rem); border: var(--line); border-radius: 26px; background: var(--ink); color: var(--paper); box-shadow: 10px 10px 0 var(--yellow); }
.c-qm { position: absolute; top: -.35em; left: .4em; font-family: var(--f-serif); font-size: 7rem; line-height: 1; color: var(--yellow); }
.c-quote > p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 1rem + 1.2vw, 2.1rem); line-height: 1.3; }
.c-who { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.c-who .c-face { border-color: var(--paper); }
.c-who .c-rl { color: rgba(255, 253, 247, .65); }

/* stack marquee */
.c-logo-marquee { overflow: hidden; padding: .6rem 0; }
.c-logo-track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem); width: max-content; will-change: transform; }
.c-logo-track img { height: 38px; width: auto; }
.c-logo-track img.c-gw, .c-logo-track img.c-slk { height: 48px; }
.c-logo-track img.c-tg-asana { height: 24px; } .c-logo-track img.c-zapier { height: 30px; }

/* more work */
.c-xwork { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.c-xcard { display: flex; flex-direction: column; border: var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform .5s var(--spring), box-shadow .3s; }
.c-xcard:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--ink); }
.c-pic { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--line); background: var(--cream); }
.c-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-xb { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.c-xb h3 { font-size: 1.15rem; line-height: 1.2; }
.c-xtags { display: flex; flex-wrap: wrap; gap: .35rem; }
.c-xtags span { font-family: var(--f-mono); font-size: .64rem; padding: .2rem .5rem; border: 1.5px solid var(--ink); border-radius: 6px; }
.c-go { margin-top: auto; font-weight: 800; }

/* chat mock (Brightpath hero) */
.c-chatmock { border: var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 10px 10px 0 var(--ink); }
.c-cm-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: var(--ink); color: var(--paper); }
.c-cm-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; }
.c-cm-head b { display: block; } .c-cm-on { font-size: .76rem; color: var(--mint); }
.c-cm-body { display: grid; gap: .5rem; padding: 1rem; min-height: 330px; align-content: start; background: var(--paper); }
.c-cm-msg { max-width: 82%; padding: .6rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.c-cm-msg.c-bot { background: #fff; border: 1.5px solid var(--ink); border-bottom-left-radius: 4px; }
.c-cm-msg.c-user { justify-self: end; background: var(--yellow); border: 1.5px solid var(--ink); border-bottom-right-radius: 4px; }
.c-cm-book { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-radius: 12px; background: var(--mint); font-weight: 700; font-size: .88rem; }
.c-cm-tick svg { width: 16px; height: 16px; }
.c-chatmock.play .c-cm-body > * { opacity: 0; transform: translateY(8px); }
.c-chatmock.play .c-cm-body > .in { opacity: 1; transform: none; transition: opacity .3s, transform .5s var(--spring); }
.c-typing { display: inline-flex; gap: 3px; padding: .7rem .8rem; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; width: max-content; }
.c-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: tdot 1s ease-in-out infinite; }
.c-typing i:nth-child(2) { animation-delay: .15s; } .c-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 40% { transform: translateY(-4px); opacity: 1; } 0%, 100% { opacity: .35; } }

/* reveal */
.case [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .5s, transform .8s var(--spring); transition-delay: calc(var(--rv-i, 0) * 80ms); }
.case [data-rv].on { opacity: 1; transform: none; }

/* lightbox */
.c-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 2rem; background: rgba(13, 20, 33, .85); cursor: zoom-out; }
.c-lightbox[hidden] { display: none; }
.c-lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border: 2px solid var(--paper); border-radius: 14px; animation: lbIn .4s var(--spring); }
@keyframes lbIn { from { transform: scale(.9); opacity: 0; } }
.c-lightbox button { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 2px solid var(--paper); border-radius: 50%; color: var(--paper); font-size: 1.5rem; }

@media (max-width: 1100px) { .c-bento-stats { grid-template-columns: repeat(3, 1fr); } .c-bento-stats .c-hero-tile { grid-column: span 3; } }
@media (max-width: 900px) {
  .c-hero-grid, .c-glance, .c-bamap, .c-seq-item { grid-template-columns: 1fr; }
  .c-seq-item:nth-child(even) .c-seq-shot { order: 0; }
  .c-ba, .c-contract { grid-template-columns: 1fr; }
  .c-ba-arrow span, .c-sync { transform: rotate(90deg); }
  .c-blocks, .c-steps { grid-template-columns: 1fr 1fr; }
  .c-floatchip { left: .6rem; }
}
@media (max-width: 600px) {
  .c-bento-stats { grid-template-columns: 1fr 1fr; } .c-bento-stats .c-hero-tile { grid-column: span 2; }
  .c-blocks, .c-steps, .c-list.c-two { grid-template-columns: 1fr; } .c-block-card.c-wide { grid-column: auto; }
  .c-shead { grid-template-columns: 1fr; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) { .case [data-rv], .case .c-ba-col li { opacity: 1; transform: none; } .c-floatchip { animation: none; } }

/* case-studies index */
.cx section { border-top: 0; }
.case section.cx-hero { padding: calc(68px + clamp(2.5rem, 8vh, 5rem)) var(--gut) clamp(2rem, 5vh, 3rem); }
.cx-hero h1 { margin-top: 1rem; max-width: 16ch; font-size: clamp(2.8rem, 1rem + 5vw, 6.6rem); font-weight: 800; letter-spacing: -.055em; line-height: .92; }
.cx-count { margin-top: 1.4rem; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.cx-count b { display: inline-block; min-width: 1ch; padding: .1rem .45rem; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--yellow); color: var(--ink); }
.case section.cx-feat-wrap { padding: 0 var(--gut) clamp(3rem, 8vh, 5rem); }
.cx-feat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: var(--line); border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--paper); box-shadow: 12px 12px 0 var(--yellow); text-decoration: none; transition: transform .6s var(--spring), box-shadow .3s; }
.cx-feat:hover { transform: translate(-4px, -4px); box-shadow: 16px 16px 0 var(--yellow); }
.cx-feat-copy { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1.6rem, 4vw, 3rem); }
.cx-feat-copy .c-badge { align-self: flex-start; margin: 0; }
.cx-feat h2 { font-size: clamp(1.8rem, 1rem + 2.2vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.cx-feat p { color: rgba(255, 253, 247, .78); font-size: 1.05rem; max-width: 52ch; }
.cx-feat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .4rem; }
.cx-feat-foot .btn { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.cx-feat-pic { position: relative; overflow: hidden; border-left: var(--line); background: var(--cream); min-height: 320px; }
.cx-feat-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-out); }
.cx-feat:hover .cx-feat-pic img { transform: scale(1.04); }
.case section.cx-all { padding: clamp(3rem, 8vh, 5rem) var(--gut) clamp(4.5rem, 11vh, 7rem); border-top: var(--line); background: var(--cream); }
.cx-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.8rem; }
.cx-bar h2 { font-size: var(--t-d2); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.cx-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.cx-filters button { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .88rem; transition: background-color .2s, transform .4s var(--spring), box-shadow .2s; }
.cx-filters button i { font-style: normal; font-family: var(--f-mono); font-size: .66rem; padding: .05rem .4rem; border-radius: 999px; background: var(--cream); }
.cx-filters button:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.cx-filters button.on { background: var(--ink); color: var(--paper); }
.cx-filters button.on i { background: var(--yellow); color: var(--ink); }
.cx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.cx-card { display: flex; flex-direction: column; border: var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(var(--sc, 1)); opacity: var(--op, 1); transition: box-shadow .3s, border-color .2s; }
.cx-card:hover { box-shadow: 10px 10px 0 var(--ink); }
.cx-card.out { display: none; }
.cx-pic { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--line); background: var(--cream); }
.cx-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.cx-card:hover .cx-pic img { transform: scale(1.05); }
.cx-b { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.1rem 1.2rem 1.3rem; }
.cx-tag { align-self: flex-start; font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .55rem; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.cx-card:nth-child(3n+1) .cx-tag { background: #fff6c2; } .cx-card:nth-child(3n+2) .cx-tag { background: #d6f7ec; } .cx-card:nth-child(3n) .cx-tag { background: #e3f2fd; }
.cx-b h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.025em; }
.cx-b p { color: var(--ink-2); font-size: .93rem; }
.cx-go { margin-top: auto; padding-top: .4rem; font-weight: 800; }
.cx-go b { display: inline-block; transition: transform .4s var(--spring); }
.cx-card:hover .cx-go b { transform: translateX(5px); }
@media (max-width: 1000px) { .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .cx-feat { grid-template-columns: 1fr; } .cx-feat-pic { border-left: 0; border-top: var(--line); min-height: 0; aspect-ratio: 16 / 10; order: -1; } }
@media (max-width: 620px) { .cx-grid { grid-template-columns: 1fr; } }
.c-person > img, .c-who > img { flex: none; width: 56px; height: 56px; border-radius: 50%; border: var(--line); object-fit: cover; }
.c-person > div, .c-who > div { min-width: 0; }
/* icons copied from the live pages carry no size; default them to text size */
.case :where(svg:not([width])) { width: 1.1em; height: 1.1em; flex: none; }
.c-trustline svg { vertical-align: -.2em; margin-right: .3rem; color: var(--mint-d); }
.c-toc { transition: transform .45s var(--ease-out), opacity .3s; }
.c-toc.gone { transform: translateY(-110%); opacity: 0; pointer-events: none; }

/* product builds (HuddleOwl, Mero AI, BaseToPDF) */
.c-fbuild { display: grid; gap: 1.6rem; }
.c-fbuild-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
.c-fbuild-row.c-rev .c-fb-shot { order: 2; }
.c-fb-shot { border: var(--line); border-radius: 18px; overflow: hidden; background: var(--cream); box-shadow: 8px 8px 0 var(--ink); cursor: zoom-in; transition: transform .6s var(--spring), box-shadow .3s; }
.c-fbuild-row:hover .c-fb-shot { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 11px 11px 0 var(--ink); }
.c-fbuild-row.c-rev:hover .c-fb-shot { transform: translate(-3px, -3px) rotate(.4deg); }
.c-fb-shot img { display: block; width: 100%; height: auto; }
.c-fb-info .c-ic { background: var(--yellow); }
.c-fb-info h3 { margin: .9rem 0 .5rem; font-size: clamp(1.3rem, 1rem + .8vw, 1.8rem); letter-spacing: -.035em; }
.c-fb-info p { color: var(--ink-2); }
.c-fb-skills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.c-fb-skills span { padding: .25rem .6rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--mint); font-size: .78rem; font-weight: 700; }
.c-tools-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.c-tpill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem .5rem .55rem; border: var(--line); border-radius: 999px; background: #fff; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); transition: transform .4s var(--spring), background-color .2s; }
.c-tpill.c-txt { padding-left: .95rem; font-family: var(--f-mono); font-size: .85rem; }
.c-tpill:hover { transform: translateY(-3px) rotate(-1deg); background: var(--yellow); }
.c-tpill .c-ic { width: 28px; height: 28px; border-width: 1.5px; border-radius: 8px; overflow: hidden; background: #fff; }
.c-tpill .c-ic img { width: 100%; height: 100%; object-fit: contain; }
.c-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: var(--line); border-radius: 50%; background: var(--yellow); font-size: 1.4rem; font-weight: 800; }
@media (max-width: 900px) { .c-fbuild-row { grid-template-columns: 1fr; } .c-fbuild-row.c-rev .c-fb-shot { order: 0; } }
