/* ── Case-study pages. Builds on styles.css tokens. ─────────────── */

.case-hero { padding-top: 150px; max-width: 980px; }
.back { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.back svg { width: 13px; height: 13px; transform: scaleX(-1); transition: transform .35s var(--ease); }
@media (hover: hover) { .back:hover { background: var(--fill-2); color: var(--ink); } .back:hover svg { transform: scaleX(-1) translateX(3px); } }
.case-hero .kicker { margin: 30px 0 0; font-size: 15px; color: var(--ink-3); }
.case-hero h1 { white-space: normal; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; margin: 10px 0 0; text-wrap: balance; }
.case-hero .dek { margin: 20px 0 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.case-hero .result .oc.shield { flex: none; width: 26px; height: 26px; margin-left: 4px; }
.case-hero .result:has(.shield) { border-radius: 22px; align-items: flex-start; }
.case-hero .result:has(.shield) .shield { margin-top: 1px; }
.case-hero .result { display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--fill); font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.case-hero .result .num { flex: none; white-space: nowrap; min-width: 2.6em; padding: 6px 12px; border-radius: 999px; background: var(--carbon); color: var(--on-carbon); font: 600 17px/1 var(--round); text-align: center; font-variant-numeric: tabular-nums; }
.case-hero .result .oc { width: 30px; height: 30px; margin-left: 2px; color: var(--ink); }

.facts-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-top: 40px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.facts-row > div { padding: 18px 22px 20px; }
.facts-row small { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.facts-row b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.facts-row a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 16px; padding: 2px 8px; margin: -2px -8px; border-radius: 8px; transition: background-color .15s var(--ease); }
.facts-row a svg { width: 12px; height: 12px; }
@media (hover: hover) { .facts-row a:hover { background: var(--fill); } }

.case-cover { position: relative; display: grid; place-items: center; aspect-ratio: 21 / 9; margin-top: 28px; border-radius: 30px; overflow: hidden; }
.case-cover .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-cover .bg:not(.mock .bg) { filter: brightness(.9) saturate(1.05); }
.case-cover .lg { position: relative; width: 26%; max-width: 300px; filter: drop-shadow(0 8px 28px rgba(0,0,0,.2)); }
.case-cover .lg.inv { filter: invert(1); width: 33%; }
.case-cover.mock { aspect-ratio: auto; display: block; cursor: zoom-in; }
.case-cover.mock .bg { position: static; height: auto; display: block; }
.case-cover.mock .bg { transition: transform 1s var(--ease); }
@media (hover: hover) { .case-cover.mock:hover .bg { transform: scale(1.02); } }

/* layout: section index on the left, reading column on the right */
.case-body { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 72px; margin-top: 96px; align-items: start; }

/* section index (lines, after batuhankarasakal.com) */
.index { position: sticky; top: 130px; display: grid; gap: 2px; margin-left: -12px; }
.index a { position: relative; display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-radius: 10px; transition: background-color .15s var(--ease); }
.index a i { flex: none; height: 2px; width: var(--w, 22px); border-radius: 2px; background: var(--sep); transition: width .45s var(--ease), background-color .25s var(--ease); }
.index a span { font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease), color .2s var(--ease); }
.index a.past i { background: var(--ink-3); }
.index a.on i { width: 40px; background: var(--ink); }
.index a.on span { opacity: 1; transform: none; color: var(--ink); }
.index:hover a span { opacity: 1; transform: none; }
@media (hover: hover) { .index a:hover { background: var(--fill); } .index a:hover i { background: var(--ink); } }

/* reading column */
.col-read { min-width: 0; }
.reel { max-width: 100%; }
.col-read > section { padding-top: 24px; margin-bottom: 96px; scroll-margin-top: 110px; }
.col-read > section:first-child { padding-top: 0; }
.col-read h2 { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -.028em; margin: 0 0 22px; text-wrap: balance; }
.col-read h3 { font-size: 21px; font-weight: 500; letter-spacing: -.018em; margin: 44px 0 12px; }
.col-read p { margin: 0 0 18px; font-size: 18.5px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.col-read p.lead { font-size: 23px; line-height: 1.45; font-weight: 500; letter-spacing: -.012em; }
.col-read p.note { font-size: 15.5px; color: var(--ink-3); line-height: 1.55; }
.col-read ul.list { list-style: none; margin: 0 0 22px; padding: 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.col-read ul.list li { position: relative; display: flex; gap: 14px; padding: 15px 18px; font-size: 17px; line-height: 1.5; }
.col-read ul.list li + li::before { content: ""; position: absolute; top: 0; left: 52px; right: 18px; border-top: .5px solid var(--sep); }
.col-read ul.list li b { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--round); background: var(--fill); color: var(--ink-2); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 26px; }
.pair > div { padding: 20px 20px 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.pair small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.pair p { font-size: 16.5px !important; line-height: 1.6 !important; margin: 0 !important; }

figure { margin: 10px 0 30px; }
figure .shot { position: relative; display: block; width: 100%; padding: clamp(14px, 2.4vw, 32px); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; transition: box-shadow .3s var(--ease), background-color .2s var(--ease); }
figure .shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 .5px var(--sep); transition: transform .8s var(--ease); }
@media (hover: hover) { figure .shot:hover { background: var(--fill); } figure .shot:hover img { transform: scale(1.015); } }
/* frameless: for images that already carry their own cards (component sheets) */
figure.bare .shot { padding: 0; background: none; box-shadow: none; border-radius: 16px; }
figure.bare .shot img { border-radius: 0; box-shadow: none; }
@media (hover: hover) { figure.bare .shot:hover { background: none; } figure.bare .shot:hover img { transform: scale(1.01); } }
figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 30px; }
.grid2 figure { margin: 0; }
/* everything, diagrams included, stays inside the reading column */

.quote { position: relative; margin: 12px 0 30px; padding: 30px 30px 28px 84px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: background-color .2s var(--ease); }
.quote::before { content: "\201C"; position: absolute; left: 24px; top: 18px; font: 500 76px/1 Georgia, "Times New Roman", serif; color: var(--fill-2); transition: color .2s var(--ease); }
@media (hover: hover) { .quote:hover { background: var(--fill); } .quote:hover::before { color: var(--ink); } }
.quote p { font-size: 22px !important; line-height: 1.45 !important; font-weight: 500; letter-spacing: -.012em; margin: 0 !important; }
.quote small { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.insights { display: grid; gap: 12px; margin: 8px 0 30px; }
.insight { padding: 22px 24px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: background-color .2s var(--ease); }
.insight small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.insight h4 { margin: 4px 0 6px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.insight blockquote { position: relative; margin: 14px 0 0; padding: 18px 0 0 46px; font-size: 18px; line-height: 1.5; color: var(--ink-2); transition: color .2s var(--ease); }
.insight blockquote::before { content: "\201C"; position: absolute; left: -2px; top: -4px; font: 500 76px/1 Georgia, "Times New Roman", serif; color: var(--fill-2); transition: color .2s var(--ease), transform .45s var(--spring); }
@media (hover: hover) { .insight:hover { background: var(--fill); } .insight:hover blockquote { color: var(--ink); } .insight:hover blockquote::before { color: var(--ink); transform: translateY(-3px); } }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 30px; }
.cards > div { padding: 20px 20px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.cards h4 { margin: 0 0 10px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.cards ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cards li { position: relative; padding-left: 16px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.cards li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }

.process { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 8px 0 30px; }
.process > div { flex: 1 1 150px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.process b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.process b i { font: 600 11.5px/1 var(--round); font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--carbon); color: var(--on-carbon); }
.process span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.hmw { margin: 16px 0 34px; font-size: 25px; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.hmw .hl { font-size: .62em; vertical-align: .35em; margin-right: .4em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.stats .stat { margin: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.stats .stat span { font-size: 16px; line-height: 1.4; }
.stats .stat b { font-size: clamp(38px, 3.4vw, 50px); white-space: nowrap; }
.stat { display: flex; align-items: baseline; gap: 16px; margin: 4px 0 26px; padding: 24px 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.stat b { font: 600 56px/1 var(--round); letter-spacing: -.02em; }
.stat span { font-size: 18px; color: var(--ink-2); }

.out { transition: background-color .2s var(--ease), box-shadow .3s var(--ease); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; background: var(--carbon); color: var(--on-carbon); font-weight: 600; font-size: 15px; margin: 6px 0 10px; }
.out svg { width: 14px; height: 14px; }

/* before / after slider */
.compare { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; cursor: ew-resize; --x: 50%; }
.compare img { display: block; width: 100%; height: auto; pointer-events: none; }
.compare .cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--surface); box-shadow: 0 0 0 .5px var(--sep); }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1B19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 2px 10px rgba(28,27,25,.2), inset 0 0 0 .5px var(--sep); }
.compare .tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(28,27,25,.72); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }

/* reveal as you read */
.col-read .rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.col-read .rv.wait { opacity: 0; transform: translateY(18px); }

/* next case */
.next { display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 28px; align-items: center; margin-top: 40px; padding: 16px; border-radius: 34px; transition: background-color .2s var(--ease); }
.next:hover { background: var(--fill); }
.next small { font-size: 14px; color: var(--ink-3); }
.next h3 { margin: 6px 0 8px; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.028em; text-wrap: balance; }
.next p { margin: 0; color: var(--ink-2); }
.next .media { margin: 0; }
.next:hover .media .bg { transform: scale(1.1); }
.next:hover .media .lg { transform: translateY(-5px) scale(1.04); }
.next .read { margin-top: 16px; }
.next:hover .read svg { transform: translateX(4px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 40px; background: rgba(251,251,249,.86); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); cursor: zoom-out; animation: lbIn .3s var(--ease); }
:root[data-theme="dark"] .lightbox { background: rgba(18,18,17,.86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lightbox { background: rgba(18,18,17,.86); } }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.4); animation: lbImg .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { transform: scale(.94); opacity: 0; } }


@media (max-width: 1000px) {
  .case-body { grid-template-columns: 1fr; gap: 0; } .index { display: none; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .next { grid-template-columns: 1fr; } .next .media { order: -1; }
}
@media (max-width: 700px) { .pair, .cards, .grid2 { grid-template-columns: 1fr; } .case-cover { aspect-ratio: 16 / 10; } }

/* ── Screen-to-screen reel: scroll, drag, arrows or keys ─────────── */
.reel { position: relative; margin: 14px 0 34px; }
.reel-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent); }
.reel .slide:last-child { margin-right: 30vw; }
.reel-track { display: flex; align-items: flex-start; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 10px; scrollbar-width: none; cursor: grab; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.reel .slide { flex: none; width: var(--slide-w, 86%); margin: 0; scroll-snap-align: start; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.reel .slide:not(.on) { opacity: .45; transform: scale(.965); }
.reel .slide figcaption { transition: opacity .4s var(--ease); }
.reel .slide:not(.on) figcaption { opacity: 0; }
.reel-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.reel-bar button.arrow { flex: none; margin: 0; }
.reel-bar button.arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); transition: background-color .15s var(--ease), opacity .2s var(--ease), transform .18s var(--ease); }
.reel-bar button.arrow svg { width: 14px; height: 14px; }
.reel-bar button.arrow.r-prev svg { transform: scaleX(-1); }
@media (hover: hover) { .reel-bar button.arrow:hover { background: var(--fill-2); } }
.reel-bar button.arrow:active { transform: scale(.94); }
.reel-bar button.arrow:disabled { opacity: .35; cursor: default; }
.reel-count { font: 600 13px var(--round); color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 54px; }
.reel-prog { flex: 1; max-width: 220px; height: 3px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.reel-prog i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; transition: width .5s var(--ease); }


/* ── Diagrams ─────────────────────────────────────────────────────── */
.diagram { margin: 14px 0 34px; padding: clamp(18px, 3vw, 34px); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.diagram figcaption { margin-top: 16px; }
.dd svg { display: block; width: 100%; height: auto; overflow: visible; }
.dd .shape { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s var(--ease); }
.dd .mid { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0; transition: opacity .6s var(--ease) 1s; }
.dd .node { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; opacity: 0; transition: opacity .4s var(--ease) 1.2s; }
.dd text { fill: var(--ink); font: 500 17px var(--font); text-anchor: middle; opacity: 0; transition: opacity .6s var(--ease); }
.dd text.wk { fill: var(--ink-3); font: 600 12.5px var(--round); }
.dd text.ph { fill: var(--ink-3); font: 500 13px var(--font); }
.dd.drawn .shape { stroke-dashoffset: 0; }
.dd.drawn .mid, .dd.drawn .node { opacity: 1; }
.dd.drawn text { opacity: 1; transition-delay: calc(.5s + var(--k, 0) * .18s); }
.dd .hl { fill: var(--fill); }

.fmap { position: relative; display: grid; grid-template-columns: 1fr .85fr 1fr; gap: 26px; align-items: start; }
.fmap svg.curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fmap svg.curves path { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.2s var(--ease) .7s; }
.fmap.drawn svg.curves path { stroke-dashoffset: 0; }
.fcol { position: relative; z-index: 1; display: grid; gap: 10px; transition: opacity .3s var(--ease); }
.fcol h4 { justify-self: start; margin: 0 0 6px; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: var(--fill); color: var(--ink); }
.fcol.shared { margin-top: 150px; }
.fcol.shared h4 { justify-self: center; background: var(--carbon); color: var(--on-carbon); }
.fcol .fr { padding: 13px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 .5px var(--sep);
  opacity: 0; transform: translateX(var(--from, 0)); transition: opacity .6s var(--ease), transform .7s var(--ease), background-color .2s var(--ease), color .2s var(--ease); transition-delay: calc(var(--k, 0) * .09s); }
.fcol .fr b { color: var(--ink); font-weight: 500; }
.fcol.company .fr { --from: -16px; } .fcol.startup .fr { --from: 16px; } .fcol.shared .fr { --from: 0; transform: translateY(12px); background: var(--fill); color: var(--ink); }
.fmap.drawn .fr { opacity: 1; transform: none; }
.fmap.drawn .fcol.shared .fr { transition-delay: calc(1.4s + var(--k, 0) * .12s); }
@media (hover: hover) { .fmap .fr:hover { background: var(--fill); color: var(--ink); } .fmap:has(.company:hover) .startup, .fmap:has(.startup:hover) .company { opacity: .45; } }

/* ── Impact cards ─────────────────────────────────────────────────── */
.impact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 30px; }
.impact > div { padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.impact .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); margin-bottom: 18px; }
.impact .ic svg { width: 19px; height: 19px; }
.impact h4 { margin: 0 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.impact p { margin: 0 !important; font-size: 15.5px !important; line-height: 1.55 !important; color: var(--ink-2) !important; }

/* ── Closing call to the live site ───────────────────────────────── */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) 46%; gap: 28px; align-items: center; margin: 20px 0 10px; padding: 16px 16px 16px 28px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); transition: background-color .2s var(--ease); }
.visit:hover { background: var(--fill); }
.visit small { font-size: 14px; color: var(--ink-3); }
.visit h4 { margin: 6px 0 16px; font-size: 26px; font-weight: 500; letter-spacing: -.016em; }
.visit .out { margin: 0; }
/* nested radius: card 30 minus its 16px inset */
.visit .pic { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.visit .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.visit:hover .pic img { transform: scale(1.06); }

@media (max-width: 900px) { .fmap { grid-template-columns: 1fr; } .fcol.shared { margin-top: 0; } .fmap svg.curves { display: none; } .impact, .visit { grid-template-columns: 1fr; } .visit { padding: 16px; gap: 18px; } .visit > div:first-child { padding: 10px 10px 0; } }

/* ── Lindy digest over the inbox mockup ───────────────────────────── */
.digest { margin: 0 0 34px; }
.mockwrap { position: relative; container-type: inline-size; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.mockwrap img { display: block; width: 100%; }
/* fills the empty message pane of 01.png: between the sidebar (x 26%) and the icon rail (x 84%), starting under the toolbar (y 24%) */
.dcard { position: absolute; left: 55%; top: 24%; width: 53%; padding: 1.8cqw 2.1cqw 1.5cqw; border-radius: 2cqw; background: #FFFFFF; color: #2B2A27;
  box-shadow: 0 2.4cqw 6cqw -2cqw rgba(120,86,20,.35), 0 0 0 .5px rgba(0,0,0,.05); font-size: 1.5cqw; line-height: 1.33;
  transform: translate(-50%, 8%); opacity: 0; transition: transform 1.5s var(--ease), opacity 1s var(--ease); }
.digest.in .dcard { transform: translate(-50%, 0); opacity: 1; }
.dtag { display: inline-block; padding: .15em .55em; border-radius: .4em; font-size: .72em; font-weight: 600; background: #FBEBC8; color: #B57F2E; }
.dline { margin: .45em 0 .8em !important; font-size: 1.28em !important; line-height: 1.3 !important; font-weight: 500; color: #3A3935 !important; letter-spacing: -.01em; }
.dline b { color: #C08A3C; font-weight: 500; font-variant-numeric: tabular-nums; }
.dsub { margin: 0 0 .6em !important; font-size: .82em !important; line-height: 1.3 !important; font-weight: 500; color: #2B2A27 !important; }
.ditem { display: flex; align-items: center; gap: .6em; margin-top: .35em; padding: .5em .8em; border-radius: .6em; background: #FBF8F1; font-size: .82em; font-weight: 500;
  opacity: 0; transform: translateY(.6em); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(1.3s + var(--k) * .22s); }
.ditem i { width: .32em; height: .32em; border-radius: 50%; background: #2B2A27; }
.ditem svg { width: .9em; height: .9em; }
.digest.in .ditem { opacity: 1; transform: none; }

/* ── Mobile section menu ─────────────────────────────────────────── */
.jump { display: none; }
@media (max-width: 1000px) {
  .jump { display: block; position: fixed; left: 50%; bottom: calc(max(6px, env(safe-area-inset-bottom, 0px) - 14px) + var(--vv-gap, 0px)); z-index: 45; transform: translate(-50%, 140%); opacity: 0;
    transition: transform .5s var(--ease), opacity .3s var(--ease); }
  .jump.show { transform: translate(-50%, 0); opacity: 1; }
  .jump.embed { position: absolute; bottom: auto; transition: top .25s var(--ease), transform .5s var(--ease), opacity .3s var(--ease); }
  .jump-btn { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink);
    background: linear-gradient(180deg, var(--glass-top), var(--glass-bot)); -webkit-backdrop-filter: blur(14px) saturate(190%); backdrop-filter: blur(14px) saturate(190%);
    box-shadow: inset 0 1px 1px var(--glass-hi), 0 0 0 .5px rgba(28,27,25,.12), 0 14px 36px -12px rgba(28,27,25,.3); white-space: nowrap; }
  .jump-btn .jn { font: 600 12.5px var(--round); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .jump-btn svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
  .jump.open .jump-btn svg { transform: rotate(180deg); }
  .jump-list { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(300px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto;
    padding: 6px; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 60px -20px rgba(28,27,25,.35); animation: lbImg .3s var(--ease); }
  .jump-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
  .jump-list a b { font: 600 12px var(--round); color: var(--ink-3); }
  .jump-list a.on { background: var(--fill); color: var(--ink); }
  footer { padding-bottom: 110px; }
}


/* ── Replay for the Lindy digest ──────────────────────────────────── */
/* sits in the empty right rail of the mock inbox, under its icon column (x 85.1%, y 80% of 01.png) */
.replay { position: absolute; left: 85.1%; top: 78%; translate: -50% -50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #3A3935;
  background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.2);
  opacity: 0; transition: opacity .4s var(--ease) 2.6s, background-color .15s var(--ease); }
.replay svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.digest.in .replay { opacity: 1; }
/* replay: fade the card away, snap everything back without transitions, then run again */
.digest.out .dcard, .digest.out .ditem { opacity: 0; transition: opacity .25s var(--ease); transition-delay: 0s; }
.digest.snap .dcard, .digest.snap .ditem, .digest.snap .replay { transition: none !important; }
@media (hover: hover) { .replay:hover { background: #fff; } .replay:hover svg { transform: rotate(-120deg); } }

/* ── Outcomes: emphasis as they arrive ───────────────────────────── */
.emph.dim > div, .emph.dim.stat { opacity: 0; transform: translateY(16px) scale(.98); }
.emph > div, .emph.stat { position: relative; overflow: hidden; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--k, 0) * 110ms); }
.emph.lit > div, .emph.lit.stat { opacity: 1; transform: none; }
.emph > div:nth-child(2) { --k: 1; } .emph > div:nth-child(3) { --k: 2; } .emph > div:nth-child(4) { --k: 3; }
/* (no light sweep across the cards: the count-up is emphasis enough) */
.emph .ic { transition: transform .7s var(--spring); transition-delay: calc(.25s + var(--k, 0) * 110ms); }
.emph.dim .ic { transform: scale(.4); }
.emph.lit .ic { transform: none; }
.impact .ic { background: var(--carbon); color: var(--on-carbon); }

/* ── Interactive filter demo (Tipalti) ───────────────────────────── */
.fdemo { margin: 10px -60px 34px; }
.fd-app { padding: 18px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.fd-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: .5px solid var(--sep); }
.fd-anchor { position: relative; }
.fd-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px; border-radius: 10px; font-weight: 600; background: var(--fill); transition: background-color .15s var(--ease); }
.fd-btn svg { width: 16px; height: 16px; }
@media (hover: hover) { .fd-btn:hover { background: var(--fill-2); } }
.fd-count, .fd-dot { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--carbon); color: var(--on-carbon); font: 600 11.5px var(--round); }
.fd-date { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); box-shadow: inset 0 0 0 .5px var(--sep); }
.fd-date svg { width: 15px; height: 15px; }
.fd-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: 460px; max-width: calc(100vw - 48px); border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 .5px var(--sep), 0 24px 60px -20px rgba(28,27,25,.35); overflow: hidden; animation: lbImg .3s var(--ease); }
.fd-tabs { display: flex; gap: 18px; padding: 12px 16px 0; border-bottom: .5px solid var(--sep); }
.fd-tabs button { padding: 6px 0 10px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -.5px; }
.fd-tabs button.on { color: var(--ink); border-color: var(--ink); }
.fd-body { display: grid; grid-template-columns: 170px 1fr; min-height: 220px; }
.fd-body[data-pane="views"] { display: block; padding: 10px; }
.fd-body[hidden] { display: none; }
.fd-facets { padding: 8px; border-right: .5px solid var(--sep); display: grid; align-content: start; gap: 2px; }
.fd-facet { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; transition: background-color .15s var(--ease); }
.fd-facet svg { width: 13px; height: 13px; margin-left: auto; color: var(--ink-3); }
.fd-facet.on { background: var(--fill); color: var(--ink); }
@media (hover: hover) { .fd-facet:not(.on):hover { background: var(--bg); } }
.fd-opts { padding: 12px 16px; display: grid; align-content: start; gap: 4px; }
.fd-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-size: 14px !important; font-weight: 500; color: var(--ink) !important; }
.fd-opt { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; color: var(--ink); transition: background-color .15s var(--ease); }
@media (hover: hover) { .fd-opt:hover { background: var(--fill); } }
.fd-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fd-opt .box { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--ink-3); display: grid; place-items: center; transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.fd-opt input:checked + .box { background: var(--carbon); box-shadow: none; }
.fd-opt input:checked + .box::after { content: ""; width: 9px; height: 5px; border: solid var(--on-carbon); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.fd-opt input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.fd-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: .5px solid var(--sep); }
.fd-link { height: 34px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
@media (hover: hover) { .fd-link:hover { background: var(--fill); color: var(--ink); } }
.fd-save { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.fd-save input { width: 0; padding: 0; border: 0; opacity: 0; height: 34px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 .5px var(--sep); font: inherit; color: var(--ink); transition: width .35s var(--ease), opacity .25s var(--ease), padding .35s var(--ease); }
.fd-save input.show { width: 140px; padding: 0 10px; opacity: 1; }
.fd-ghost { height: 34px; padding: 0 12px; border-radius: 10px; font-weight: 600; background: var(--fill); }
@media (hover: hover) { .fd-ghost:hover { background: var(--fill-2); } }
.fd-apply { height: 34px; padding: 0 16px; border-radius: 10px; font-weight: 600; background: var(--carbon); color: var(--on-carbon); position: relative; overflow: hidden; isolation: isolate; transition: background-color .2s var(--ease); }
@media (hover: hover) { .fd-apply:hover { background: #34322F; } }
.fd-views { display: grid; gap: 4px; }
.fd-view { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; transition: background-color .15s var(--ease); }
.fd-view span { font-size: 12.5px; color: var(--ink-3); }
@media (hover: hover) { .fd-view:hover { background: var(--fill); } }
.fd-table { margin-top: 6px; }
.fd-row { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1fr 1.3fr; gap: 10px; align-items: center; padding: 11px 6px; border-bottom: .5px solid var(--sep); }
.fd-head { color: var(--ink-3); font-size: 12.5px; font-weight: 500; padding-top: 12px; }
.fd-rows .fd-row:last-child { border-bottom: 0; }
.fd-rows.in .fd-row { animation: rowIn .45s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.fd-row span:nth-child(4) { font-variant-numeric: tabular-nums; }
.st b { font-weight: inherit; }
.st { font-style: normal; white-space: nowrap; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--ink-2); }
.st-overdue { background: #FBE3DD; color: #A33A22; } .st-paid { background: #DDF1E4; color: #1E6B3C; } .st-pending { background: #FBEFD5; color: #8A5A12; }
:root[data-theme="dark"] .st-overdue { background: #3A211B; color: #F3A08D; } :root[data-theme="dark"] .st-paid { background: #17301F; color: #8BD6A4; } :root[data-theme="dark"] .st-pending { background: #34290F; color: #F0C877; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-overdue { background: #3A211B; color: #F3A08D; } :root:not([data-theme="light"]) .st-paid { background: #17301F; color: #8BD6A4; } :root:not([data-theme="light"]) .st-pending { background: #34290F; color: #F0C877; } }
.fd-empty { padding: 28px 6px; color: var(--ink-3); text-align: center; }
.fd-foot2 { padding-top: 12px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 1180px) { .fdemo { margin-left: 0; margin-right: 0; } }
@media (max-width: 700px) { .fd-row { grid-template-columns: 1.4fr 1fr 1.1fr; } .fd-row span:nth-child(2), .fd-row span:nth-child(3) { display: none; } .fd-body { grid-template-columns: 1fr; } .fd-facets { border-right: 0; border-bottom: .5px solid var(--sep); grid-auto-flow: column; overflow-x: auto; } .fd-date { display: none; } .st-more { display: none; } }

/* Tipalti's palette for the filter recreation */
.fdemo { --tp: #2B3990; --tp-soft: #DCE5FB; --tp-ink: #1C2553; }
:root[data-theme="dark"] .fdemo { --tp: #9DAEF7; --tp-soft: rgba(157,174,247,.16); --tp-ink: #DCE3FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fdemo { --tp: #9DAEF7; --tp-soft: rgba(157,174,247,.16); --tp-ink: #DCE3FF; } }
.fdemo .fd-count, .fdemo .fd-dot { background: var(--tp); color: #fff; }
:root[data-theme="dark"] .fdemo .fd-count, :root[data-theme="dark"] .fdemo .fd-dot { color: #10163A; }
.fdemo .fd-tabs button.on { color: var(--tp); border-color: var(--tp); }
.fdemo .fd-facet.on { background: var(--tp-soft); color: var(--tp-ink); }
.fdemo .fd-opt input:checked + .box { background: var(--tp); }
.fdemo .fd-opt input:checked + .box::after { border-color: #fff; }
.fdemo .fd-ghost { background: var(--tp-soft); color: var(--tp-ink); }
@media (hover: hover) { .fdemo .fd-ghost:hover { background: color-mix(in srgb, var(--tp-soft) 70%, var(--tp) 18%); } }
.fdemo .fd-apply { background: transparent; color: var(--tp-ink); box-shadow: inset 0 0 0 1.5px var(--tp-ink); }
@media (hover: hover) { .fdemo .fd-apply:hover { background: var(--tp); color: #fff; box-shadow: inset 0 0 0 1.5px var(--tp); } }
.fd-left { display: grid; align-content: start; border-right: .5px solid var(--sep); }
.fd-left .fd-facets { border-right: 0; }
.fd-search { display: flex; align-items: center; gap: 8px; margin: 8px 8px 2px; height: 36px; padding: 0 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--sep); color: var(--ink-3); }
.fd-search svg { width: 15px; height: 15px; flex: none; }
.fd-search input { width: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.fd-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--tp); }
.fd-none { font-size: 13.5px !important; color: var(--ink-3) !important; margin: 4px 0 !important; }
.fd-clear { height: 32px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--tp); }
@media (hover: hover) { .fd-clear:hover { background: var(--tp-soft); } }
@media (max-width: 700px) { .fd-left { border-right: 0; border-bottom: .5px solid var(--sep); } }

/* dark mode: soften bright screenshots a touch */
:root[data-theme="dark"] figure .shot img { filter: brightness(.94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) figure .shot img { filter: brightness(.94); } }

/* ── Page flow (UrbanQuest): lo-fi wireframes ── */
.flow { margin: 14px 0 30px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.flow li { position: relative; display: grid; gap: 8px; align-content: start; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k) * .18s); }
.flow.drawn li { opacity: 1; transform: none; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: calc(50% - 64px); right: -25px; width: 16px; height: 16px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.flow b { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin-top: 8px; }
.flow b i { font: 600 12px/22px var(--round); font-style: normal; width: 22px; height: 22px; text-align: center; border-radius: 50%; background: var(--fill); color: var(--ink-2); }
.flow span { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
/* the wireframe "screen": 18px frame, 10px inset, so inner blocks use 8px */
.wf { aspect-ratio: 4 / 3; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.wf i { display: block; font-style: normal; }
.wl { height: 5px; border-radius: 3px; background: var(--fill-2); flex: none; }
.wl.dk { background: var(--ink-3); opacity: .7; } .wl.sm { height: 4px; opacity: .7; } .wl.lg { height: 8px; } .wl.xl { height: 10px; background: var(--ink-3); opacity: .55; }
.wf-nav { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.wf-nav span { display: flex; gap: 6px; width: 45%; justify-content: flex-end; } .wf-nav span .wl { width: 22% !important; }
.wf-hero { position: relative; flex: 1; border-radius: 8px; background: linear-gradient(160deg, var(--fill-2), var(--fill)); display: flex; align-items: flex-end; padding: 12px; }
.wf-copy { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wf-btns { display: flex; gap: 6px; margin-top: 6px; } .wb { width: 30px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ink-3); } .wb.solid { background: var(--ink-3); box-shadow: none; }
.wf-dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; } .wf-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); opacity: .4; } .wf-dots i:first-child { opacity: .9; }
.wf-split { flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; padding: 4px; align-items: center; }
.wf-img { border-radius: 8px; background: linear-gradient(160deg, var(--fill-2), var(--fill)); align-self: stretch; min-height: 30px; }
.wf-split .wf-img { border-radius: 6px; }
.wf-grid-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; } .wf-grid-head span { display: flex; gap: 5px; width: 40%; justify-content: flex-end; } .wf-grid-head span .wl { width: 28% !important; height: 8px; border-radius: 4px; }
.wf-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 4px 4px; }
.wf-grid > div { display: flex; flex-direction: column; gap: 4px; } .wf-grid .wf-img { flex: 1; border-radius: 4px; }
/* a slow "scroll" hint: the wireframe content drifts on hover */
@media (hover: hover) { .flow li:hover .wf > * { transform: translateY(-4px); } }
.wf > * { transition: transform .8s var(--ease); }
@media (max-width: 700px) { .flow ol { grid-template-columns: 1fr; gap: 30px; } .flow li:not(:last-child)::after { top: auto; bottom: -24px; right: auto; left: 50%; transform: translateX(-50%) rotate(90deg); } }

/* ── Between two worlds (UrbanQuest research): a small flow diagram ── */
.between { margin: 14px 0 30px; }
.bt { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 18%; row-gap: 96px; }
.bt-curves { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bt-curves > path { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; transition: stroke-dashoffset 1.1s var(--ease) .35s; }
.bt-curves > path + path { transition-delay: .5s; }
.bt-curves marker path { fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.between.drawn .bt-curves > path { stroke-dashoffset: 0; }
.bt-pole { position: relative; padding: 22px 22px 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.bt-pole h4 { margin: 0 0 12px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.bt-pole ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bt-pole li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.bt-pole li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.bt-core { position: relative; grid-column: 1 / -1; justify-self: center; width: min(360px, 100%); padding: 26px 26px 22px; border-radius: 26px; background: #0d0d0d; color: #f5f4f0; text-align: center;
  display: grid; justify-items: center; gap: 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease) 1.1s, transform .6s var(--ease) 1.1s; }
.between.drawn .bt-core { opacity: 1; transform: none; }
.bt-core img { width: 58%; max-width: 190px; }
.bt-core p { margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; color: rgba(245,244,240,.72) !important; }
@media (max-width: 600px) { .bt { column-gap: 12px; row-gap: 72px; } .bt-pole { padding: 16px 14px; } .bt-pole li { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .bt-curves > path { stroke-dashoffset: 0; } }

/* ── Design system snippet (UrbanQuest's own tokens), as separate soft cards ── */
@font-face { font-family: "UQ Sans"; font-weight: 300 600; font-display: swap; src: url("../assets/work/urbanquest/dm-sans.woff2") format("woff2"); }
.dsys { margin: 14px 0 30px; }
.ds { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; font-family: "UQ Sans", var(--font); }
.ds-card { position: relative; overflow: hidden; border-radius: 26px; padding: 24px; display: grid; align-content: start; gap: 14px; }
.ds-dark { background: #0d0d0d; color: #f5f4f0; box-shadow: var(--shadow); }
.ds-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.ds small { position: relative; z-index: 1; font-family: var(--font); font-size: 13px; font-weight: 500; color: rgba(245,244,240,.55); }
.ds-light small { color: var(--ink-3); }
.dsys .ds p.ds-spec { position: relative; margin: 4px 0 0; font-family: "UQ Sans", var(--font); font-weight: 300; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.02; letter-spacing: .005em; color: #fff; }
.dsys .ds-spec span { color: #bec6ce; }
.dsys .ds p.ds-meta { position: relative; z-index: 1; margin: 0; max-width: 34em; font-size: 13.5px; line-height: 1.55; color: rgba(245,244,240,.6); font-weight: 400; }
.ds-sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ds-sw span { display: grid; justify-items: center; text-align: center; gap: 4px; min-width: 0; }
.ds-sw i { width: 100%; max-width: 54px; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28,27,25,.1); margin-bottom: 4px; }
.ds-sw b { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--ink); }
.ds-sw em { font-family: var(--font); font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ds-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-btns button { font-family: "UQ Sans", var(--font); font-size: 11px; letter-spacing: .2em; padding: 14px 26px; cursor: pointer; border-radius: 0; }
.ds-primary { background: #f5f4f0; color: #0d0d0d; font-weight: 600; transition: background .25s, transform .2s; }
.ds-primary:hover { background: #fff; transform: translateY(-2px); }
.ds-ghost { background: transparent; color: rgba(245,244,240,.7); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(245,244,240,.22); transition: box-shadow .25s, color .25s; }
.ds-ghost:hover { color: #f5f4f0; box-shadow: inset 0 0 0 1px #f5f4f0; }
/* logo card: the hero slideshow runs behind, dimmed; the logo carries UrbanQuest's hover (a stroke draws around it as it grows) */
.ds-logo-card { min-height: 240px; grid-template-rows: auto 1fr auto; }
.ds-logo-card .ds-logo { align-self: center; }
.ds-film { position: absolute; inset: 0; }
.ds-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.72), rgba(13,13,13,.55) 50%, rgba(13,13,13,.85)); }
.ds-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ds-push 12s cubic-bezier(.4,0,.2,1) infinite; animation-delay: calc(var(--k) * -6s); }
@keyframes ds-push { 0% { opacity: 0; transform: scale(1); } 15% { opacity: 1; } 50% { opacity: 1; } 65% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.08); } }
/* no z-index here: it would isolate the logo and stop mix-blend-mode knocking out its black */
.ds-logo { position: relative; justify-self: center; line-height: 0; margin: 12px 0; }
.ds-logo img { height: 60px; filter: invert(1); mix-blend-mode: screen; transform-origin: center; }
/* looping: the frame draws itself around the logo (as on UrbanQuest's business card), holds, then fades and redraws */
.ds-logo::before, .ds-logo::after { content: ""; position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; animation: ds-frame 5s ease-in-out infinite; }
.ds-logo::before { top: -12px; left: -12px; border-top: 1px solid #f5f4f0; border-left: 1px solid #f5f4f0; }
.ds-logo::after { right: -12px; bottom: -12px; border-right: 1px solid #f5f4f0; border-bottom: 1px solid #f5f4f0; }
.ds-logo img { animation: ds-grow 5s ease-in-out infinite; }
@keyframes ds-frame {
  0%, 6% { width: 0; height: 0; opacity: 0; }
  8% { width: 0; height: 0; opacity: 1; }
  20% { width: calc(100% + 24px); height: 0; opacity: 1; }
  32%, 78% { width: calc(100% + 24px); height: calc(100% + 24px); opacity: 1; }
  90%, 100% { width: calc(100% + 24px); height: calc(100% + 24px); opacity: 0; } }
@keyframes ds-grow { 0%, 6% { transform: scale(1); } 30%, 80% { transform: scale(1.07); } 95%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ds-logo::before, .ds-logo::after { animation: none; width: calc(100% + 24px); height: calc(100% + 24px); opacity: 1; } .ds-logo img { animation: none; } }
@media (max-width: 860px) { .ds { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ds-film img { animation: none; } .ds-film img + img { display: none; } }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards.three { grid-template-columns: 1fr; } }

/* ── General Sans: display sizes use Medium (500); semibold reads heavy this large. Loaded last so it wins. ── */
h1, h2, .h2, .case h3, footer .ft, .next h3, .col-read h2, .col-read h3, .lead, .stat b, .stats .stat b { font-weight: 500; }
.case-hero h1, h1 { letter-spacing: -.028em; }
