/* ==========================================================================
   Sera v2 · case study layer (every case page except Paperplane, which has its own template)
   Everything is prefixed html.is-v2. Hidden start states only under html.cv2-anim
   (added by case.js when motion is allowed), so the page is complete without JS.
   ========================================================================== */
html.is-v2{
  --case-accent:var(--accent,#3347FF);--case-on:#fff;--case-mark:var(--case-accent);--case-text:var(--case-accent);
  --cv2-ease:var(--v2-ease,cubic-bezier(.2,.7,.1,1));
  --cv2-out:var(--v2-ease-out,cubic-bezier(.16,1,.3,1));
  --cv2-hair:rgba(17,17,16,.14);
  --cv2-grain:url("../img/grain-dark.png");
}
/* per-case accent before JS runs (case.js then reads the theme's own --ca and recomputes the variants):
   accent = brand fill · on = text on the fill · mark = small marks on paper (>=3:1) · text = small text on paper (>=4.5:1) */
html.is-v2:has(.case-content .art--pg){--case-accent:#FF0A8C;--case-on:#fff;--case-mark:#FF0A8C;--case-text:#CF0B73}
html.is-v2:has(.case-content .art--rh),html.is-v2:has(.case-content .art--lm){--case-accent:#FF009B;--case-on:#fff;--case-mark:#FF009B;--case-text:#CF037F}
html.is-v2:has(.case-content .art--ac){--case-accent:#1F4FE0;--case-on:#fff;--case-mark:#1F4FE0;--case-text:#1F4FE0}
html.is-v2:has(.case-content .art--fm){--case-accent:#FF8A89;--case-on:#111110;--case-mark:#CF7271;--case-text:#A05A59}
html.is-v2:has(.case-content .art--nb){--case-accent:#FF3B00;--case-on:#fff;--case-mark:#FF3B00;--case-text:#CF3303}
html.is-v2:has(.case-content .art--wb){--case-accent:#F8D63E;--case-on:#111110;--case-mark:#9C872C;--case-text:#796A25}
html.is-v2:has(.case-content .art--wu){--case-accent:#FFDD00;--case-on:#111110;--case-mark:#A08B06;--case-text:#7C6D09}
html.is-v2 body:not(.is-pp) .next-case{--case-accent:var(--ca,var(--accent));--case-mark:var(--ca,var(--accent));--case-on:#fff}
html.is-v2 body:not(.is-pp) .next-case:is(.is-wu,.is-wb,.is-fm){--case-on:#111110}
html.is-v2 body:not(.is-pp) .next-case.is-wu{--case-mark:#A08B06}
html.is-v2 body:not(.is-pp) .next-case.is-wb{--case-mark:#9C872C}
html.is-v2 body:not(.is-pp) .next-case.is-fm{--case-mark:#CF7271}
html.is-v2 body:not(.is-pp) ::selection{background:var(--case-accent);color:var(--case-on)}

/* ---------- hero ---------- */
html.is-v2 body:not(.is-pp) .case-hero .case-meta{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;gap:8px 14px}
html.is-v2 body:not(.is-pp) .case-hero .case-meta strong{font-weight:500;color:var(--ink)}
html.is-v2 body:not(.is-pp) .case-hero .case-meta strong::before{content:"";display:inline-block;width:7px;height:7px;margin-right:9px;border-radius:2px;background:var(--case-mark);vertical-align:.08em}
html.is-v2 body:not(.is-pp) .case-hero .case-meta .sep{width:14px;height:1px;border-radius:0;background:var(--cv2-hair)}
html.is-v2 body:not(.is-pp) .case-hero h1:not(.mockup-stage h1){margin-top:22px}
html.is-v2 body:not(.is-pp) .case-hero .metrics{max-width:960px;margin-top:48px;border-top:1px solid var(--ink)}
html.is-v2 body:not(.is-pp) .case-hero .metric{padding-top:16px}
html.is-v2 body:not(.is-pp) .case-hero .metric b{font-variant-numeric:tabular-nums lining-nums;font-size:clamp(28px,2.6vw,38px)}
html.is-v2 body:not(.is-pp) .case-hero .metric span{max-width:30ch;font-size:13.5px}
html.is-v2 body:not(.is-pp) .case-hero .chips{margin-top:24px!important;gap:6px}
html.is-v2 body:not(.is-pp) .case-hero .chip{font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;padding:6px 11px;background:transparent}
/* wide screens: the title takes the full measure, and the facts become a data column beside the lede */
@media (min-width:1000px){
  html.is-v2 body:not(.is-pp) .case-hero>.wrap{display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,25vw,340px);column-gap:clamp(48px,6vw,96px);align-items:start}
  html.is-v2 body:not(.is-pp) .case-hero>.wrap>*{grid-column:1/-1}
  html.is-v2 body:not(.is-pp) .case-hero h1:not(.mockup-stage h1){max-width:none;margin-top:26px;font-size:clamp(56px,6.3vw,96px);line-height:.97;letter-spacing:-.036em}
  html.is-v2 body:not(.is-pp) .case-hero .lede{grid-column:1;grid-row:4;margin-top:44px;max-width:680px;font-size:clamp(18px,1.55vw,21px);line-height:1.55}
  html.is-v2 body:not(.is-pp) .case-hero .metrics{grid-column:2;grid-row:4/span 2;display:block;max-width:none;margin-top:50px;border-top:1px solid var(--ink)}
  html.is-v2 body:not(.is-pp) .case-hero .metric,html.is-v2 body:not(.is-pp) .case-hero .metric+.metric{display:grid;grid-template-columns:minmax(0,1fr);padding:12px 0 13px;border-left:0;margin:0}
  html.is-v2 body:not(.is-pp) .case-hero .metric+.metric{border-top:1px solid var(--cv2-hair)}
  html.is-v2 body:not(.is-pp) .case-hero .metric b{font-size:clamp(24px,2vw,30px)}
  html.is-v2 body:not(.is-pp) .case-hero .metric span{margin-top:5px;font-size:13px;line-height:1.4}
  html.is-v2 body:not(.is-pp) .case-hero .chips{grid-column:1;grid-row:5;align-self:start;margin-top:28px!important}
  html.is-v2 body:not(.is-pp) .case-hero .case-hero-visual{grid-row:6;margin-top:clamp(56px,6vw,88px)}
}

/* cover: drawn at (almost) full bleed and clipped back to the text width; case.js opens the clip
   as it scrolls in. Without JS (no .cv2-cover) it stays exactly where the theme puts it. */
html.is-v2 body:not(.is-pp) .case-hero-visual.cv2-cover{
  width:var(--cv2-cw);max-width:none;
  margin-left:calc((100% - var(--cv2-cw)) / 2);
  border-radius:0;overflow:visible;
  clip-path:inset(0 var(--cv2-cx,0px) round 28px);
  will-change:clip-path}
html.is-v2 body:not(.is-pp) .case-hero-visual.cv2-cover>.mockup-stage{border-radius:28px;overflow:hidden}
html.is-v2 body:not(.is-pp) .case-hero-visual.cv2-cover .mockup-stage{transform:scale(calc(1.035 - var(--cv2-o,1) * .035));transform-origin:50% 0}

/* ---------- line mask reveal (h1 + chapter headings) ---------- */
html.is-v2 body:not(.is-pp) .cv2-line{display:block;overflow:clip;overflow-clip-margin:0;padding:.06em 0 .12em;margin:-.06em 0 -.12em}
html.is-v2 body:not(.is-pp) .cv2-li{display:inline-block}
html.cv2-anim.is-v2 body:not(.is-pp) .case-hero h1.cv2-wait{opacity:0}
html.cv2-anim.is-v2 body:not(.is-pp) .cv2-lines .cv2-li{transform:translateY(108%);transition:transform 1s var(--cv2-out);transition-delay:calc(var(--l,0) * 90ms + var(--d0,0ms))}
html.cv2-anim.is-v2 body:not(.is-pp) .cv2-lines.cv2-in .cv2-li,html.cv2-safe.is-v2 body:not(.is-pp) .cv2-lines .cv2-li{transform:none}
html.cv2-anim.is-v2 body:not(.is-pp) .case-content h2.chapter{--d0:120ms}
html.cv2-anim.is-v2 body:not(.is-pp) .case-hero h1:not(.mockup-stage h1){--d0:80ms}

/* ---------- chapter openers ---------- */
html.is-v2 body:not(.is-pp) .case-content .kicker.cv2-opener{
  display:grid;grid-template-columns:auto auto 1fr;align-items:end;column-gap:16px;
  margin-top:clamp(112px,12vw,176px);scroll-margin-top:150px;
  color:var(--ink)}
html.is-v2 body:not(.is-pp) .case-content .kicker.cv2-opener::before{display:none}
html.is-v2 body:not(.is-pp) .cv2-kn{
  font-family:var(--display);font-weight:400;font-stretch:75%;font-variation-settings:"wdth" 75;
  font-size:clamp(64px,7.4vw,108px);line-height:.74;letter-spacing:-.045em;text-transform:none;
  font-variant-numeric:tabular-nums lining-nums;color:var(--ink)}
html.is-v2 body:not(.is-pp) .cv2-ksep{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.is-v2 body:not(.is-pp) .cv2-kl{padding-bottom:2px;font-size:12px;letter-spacing:.09em;color:var(--ink);white-space:nowrap}
html.is-v2 body:not(.is-pp) .cv2-kl::before{content:"";display:inline-block;width:6px;height:6px;margin-right:10px;border-radius:50%;background:var(--case-mark);vertical-align:.12em}
html.is-v2 body:not(.is-pp) .cv2-krule{align-self:end;height:1px;margin-bottom:7px;background:var(--cv2-hair);transform-origin:0 50%}
html.is-v2 body:not(.is-pp) .case-content .kicker.cv2-opener+h2.chapter{margin-top:30px;font-size:clamp(34px,4.1vw,56px)}
html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-krule{transform:scaleX(0);transition:transform 1.1s var(--cv2-out) .15s}
html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-kn,html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-kl{opacity:0;transform:translateY(12px);transition:opacity .7s var(--cv2-ease),transform .9s var(--cv2-out)}
html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-kl{transition-delay:.08s}
html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener.cv2-in .cv2-krule,html.cv2-safe.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-krule{transform:none}
html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener.cv2-in .cv2-kn,html.cv2-anim.is-v2 body:not(.is-pp) .kicker.cv2-opener.cv2-in .cv2-kl,
html.cv2-safe.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-kn,html.cv2-safe.is-v2 body:not(.is-pp) .kicker.cv2-opener .cv2-kl{opacity:1;transform:none}

/* ---------- rhythm between text and figures ---------- */
html.is-v2 body:not(.is-pp) .case-content>.cv2-fig{margin-top:clamp(48px,5.6vw,80px)}
html.is-v2 body:not(.is-pp) .case-content>.cv2-fig+.cv2-fig{margin-top:clamp(20px,2.2vw,28px)}
html.is-v2 body:not(.is-pp) .case-content>.cv2-after-fig{margin-top:clamp(44px,5vw,72px)}
html.is-v2 body:not(.is-pp) .case-content>.cv2-after-fig.kicker{margin-top:clamp(112px,12vw,176px)}

/* ---------- pull quotes (existing standalone sentences) ---------- */
html.is-v2 body:not(.is-pp) .case-content>p.cv2-pull{
  position:relative;margin-top:clamp(36px,4vw,52px);padding-left:28px;
  font-family:var(--display);font-weight:500;font-stretch:92%;font-size:clamp(24px,2.3vw,31px);
  line-height:1.16;letter-spacing:-.022em;color:var(--ink);text-wrap:balance}
html.is-v2 body:not(.is-pp) .case-content>p.cv2-pull::before{content:"";position:absolute;left:0;top:.18em;bottom:.14em;width:3px;border-radius:2px;background:var(--case-mark)}

/* ---------- figures ---------- */
html.is-v2 body:not(.is-pp) .cv2-fig .art-label{display:flex;align-items:center;gap:9px;letter-spacing:.09em}
html.is-v2 body:not(.is-pp) .cv2-fig .art-label::before{content:"";flex:none;width:6px;height:6px;border-radius:1.5px;background:var(--case-mark)}
html.is-v2 body:not(.is-pp) .cv2-fig .art-cap{display:flex;gap:10px;font-family:var(--mono);font-size:11.5px;line-height:1.55;letter-spacing:.02em;color:var(--muted)}
html.is-v2 body:not(.is-pp) .cv2-fig .art-cap::before{content:"";flex:none;width:18px;height:1px;margin-top:.75em;background:currentColor;opacity:.6}
/* captions with an inline link: keep the sentence in one flow (flex would split it into columns) */
html.is-v2 body:not(.is-pp) .cv2-fig .art-cap:has(a){display:block;position:relative;padding-left:28px}
html.is-v2 body:not(.is-pp) .cv2-fig .art-cap:has(a)::before{position:absolute;left:0;top:.75em;margin:0}
/* calm entrance, once: the frame unmasks from the bottom while it settles */
@keyframes cv2-fig{from{clip-path:inset(0 0 18% 0 round 28px);translate:0 28px;opacity:0}to{clip-path:inset(0 0 0 0 round 0);translate:0 0;opacity:1}}
html.cv2-anim.is-v2 body:not(.is-pp) .cv2-fig.cv2-in{animation:cv2-fig 1.05s var(--cv2-out) both}
html.cv2-anim.is-v2 body:not(.is-pp) .cv2-fig:not(.cv2-in){opacity:0}
html.cv2-safe.is-v2 body:not(.is-pp) .cv2-fig{opacity:1}
/* the theme's own reveal translate is replaced by ours */
html.cv2-anim.is-v2 body:not(.is-pp) .art.reveal.cv2-fig{transform:translateX(-50%)}
html.cv2-anim.is-v2 body:not(.is-pp) .case-content .alignwide.reveal.cv2-fig{transform:translateX(-50%)}

/* ---------- dark interludes: full bleed with grain ---------- */
html.is-v2 body:not(.is-pp) .cv2-bleed{width:var(--cv2-vw,100vw);--cv2-pad:max(clamp(24px,5vw,72px),calc((var(--cv2-vw,100vw) - 1200px) / 2 + clamp(24px,4vw,56px)))}
html.is-v2 body:not(.is-pp) .cv2-bleed>.art-panel.art-dark,html.is-v2 body:not(.is-pp) .cv2-bleed>.impact{position:relative;isolation:isolate;border-radius:0;padding-top:clamp(64px,8vw,128px);padding-bottom:clamp(64px,8vw,128px);padding-left:var(--cv2-pad);padding-right:var(--cv2-pad)}
html.is-v2 body:not(.is-pp) .cv2-bleed>.art-panel.art-dark::after,html.is-v2 body:not(.is-pp) .cv2-bleed>.impact::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:var(--cv2-grain);background-size:180px;opacity:.07}
html.is-v2 body:not(.is-pp) .cv2-bleed>.art-panel.art-dark>*{position:relative;z-index:1}
html.is-v2 body:not(.is-pp) .cv2-bleed>.art-cap{margin-left:var(--cv2-pad);margin-right:var(--cv2-pad)}
html.is-v2 body:not(.is-pp) .case-content>.cv2-bleed{margin-top:clamp(72px,8vw,120px)}
html.is-v2 body:not(.is-pp) .case-content>.cv2-bleed+.cv2-after-fig{margin-top:clamp(64px,7vw,104px)}
@keyframes cv2-bleed{from{opacity:0}to{opacity:1}}
html.cv2-anim.is-v2 body:not(.is-pp) .cv2-bleed.cv2-in{animation:cv2-bleed .9s var(--cv2-ease) both}

/* ---------- learnings ---------- */
html.is-v2 body:not(.is-pp) .art-pg-reflection .reflect>div{border-radius:22px;padding:32px 30px 20px}
html.is-v2 body:not(.is-pp) .art-pg-reflection .reflect li{padding:14px 0 14px 26px;font-size:15.5px;line-height:1.5}
html.is-v2 body:not(.is-pp) .art-pg-reflection .reflect li::before{top:21px;width:8px;height:8px;border-radius:2px}
html.is-v2 body:not(.is-pp) .art-pg-signals .signals{border-radius:22px}
html.is-v2 body:not(.is-pp) .art-pg-signals .signals>div{padding:28px 26px 30px;transition:background .3s var(--cv2-ease)}
html.is-v2 body:not(.is-pp) .art-pg-signals .signals i{font-variant-numeric:tabular-nums;color:var(--ink)}
html.is-v2 body:not(.is-pp) .art-pg-signals .signals i::after{content:"";display:block;width:18px;height:1px;margin-top:12px;background:var(--case-mark)}
@media (hover:hover){html.is-v2 body:not(.is-pp) .art-pg-signals .signals>div:hover{background:#FBFAF6}}

/* ---------- next case: closing block ---------- */
html.is-v2 body:not(.is-pp) .next-case.has-thumb{
  --nt-w:420px;--nt-s:.55263;
  grid-template-columns:minmax(0,1fr) var(--nt-w);gap:clamp(28px,5vw,72px);align-items:end;
  margin-top:clamp(120px,14vw,200px);padding:clamp(28px,3vw,40px) 0 0;
  border:0;border-top:1px solid var(--ink);border-radius:0;background:transparent;transform:none}
html.is-v2 body:not(.is-pp) .next-case:hover{transform:none}
html.is-v2 body:not(.is-pp) .next-case .eyebrow{display:flex;align-items:center;gap:10px;color:var(--ink);letter-spacing:.09em}
html.is-v2 body:not(.is-pp) .next-case .eyebrow::before{content:"";width:6px;height:6px;border-radius:1.5px;background:var(--case-mark,var(--ca))}
html.is-v2 body:not(.is-pp) .next-case .t{display:block;margin-top:clamp(28px,4vw,56px);font-size:clamp(40px,5.6vw,88px);line-height:.96;letter-spacing:-.04em;font-stretch:88%;text-wrap:balance}
html.is-v2 body:not(.is-pp) .next-case .cv2-nt{background:linear-gradient(currentColor,currentColor) 0 98%/0 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .7s var(--cv2-out)}
html.is-v2 body:not(.is-pp) .next-case:hover .cv2-nt{background-size:100% 2px}
html.is-v2 body:not(.is-pp) .next-case .t .ico{display:block;box-sizing:content-box;width:28px;height:28px;margin-top:clamp(28px,3vw,40px);padding:22px;border-radius:50%;background:var(--case-accent,var(--ca));color:var(--case-on,#fff);transition:transform .5s var(--cv2-out)}
html.is-v2 body:not(.is-pp) .next-case:hover .next-link .ico{translate:none;transform:translateX(10px)}
/* thumbnail: a complete little composition (browser + whole phone) in a rounded frame; it rests a size
   smaller and grows into place on hover. The theme's peek-crop positioning is replaced here. */
html.is-v2 body:not(.is-pp) .next-thumb{height:calc(var(--nt-w) * .7276);border-radius:20px;background:#0E0A10;
  transform:scale(.86);transform-origin:100% 100%;transition:transform .8s var(--cv2-out),box-shadow .8s var(--cv2-out)}
html.is-v2 body:not(.is-pp) .next-case:hover .next-thumb{transform:none;box-shadow:0 40px 80px -40px rgba(14,10,16,.55)}
html.is-v2 body:not(.is-pp) .next-thumb .nt-card{transform:scale(var(--nt-s))}
html.is-v2 body:not(.is-pp) .next-thumb .ac-hero-stage{position:relative!important;display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important}
html.is-v2 body:not(.is-pp) .next-thumb .ac-hero-stage>.browser{position:absolute!important;left:7%!important;top:13%!important;right:auto!important;margin:0!important;transform:none!important;
  transition:translate .8s var(--cv2-out)}
html.is-v2 body:not(.is-pp) .next-thumb .ac-hero-stage>.device{position:absolute!important;left:auto!important;right:7%!important;top:9%!important;margin:0!important;
  transform:scale(.56)!important;transform-origin:100% 0!important}
html.is-v2 body:not(.is-pp) .next-case:hover .next-thumb .ac-hero-stage>.browser{translate:0 -10px}
html.is-v2 body:not(.is-pp) .next-case:hover .next-thumb .ac-hero-stage>.device{translate:0 -18px;scale:1.04;rotate:-2deg}
@media (max-width:1100px){html.is-v2 body:not(.is-pp) .next-case.has-thumb{--nt-w:320px;--nt-s:.42105}}

/* ---------- current chapter (built by case.js) ----------
   wide: a quiet label in the header pill, left of the language switch, opening a dropdown;
   narrow: a pill at bottom-right (the left corner belongs to the version switch). */
html.is-v2 body:not(.is-pp) .cv2-chap,html.is-v2 body:not(.is-pp) .cv2-pill,html.is-v2 body:not(.is-pp) .cv2-toc{display:none}
html.is-v2 body:not(.is-pp) .cv2-toc ol{list-style:none;margin:0;padding:0}
html.is-v2 body:not(.is-pp) .cv2-toc a{display:flex;align-items:baseline;gap:12px;padding:8px 10px;border-radius:10px;color:var(--ink-2);font:500 12px/1.35 var(--mono);letter-spacing:.03em;transition:background .2s,color .2s}
html.is-v2 body:not(.is-pp) .cv2-toc .n{flex:none;width:20px;color:var(--muted);font-variant-numeric:tabular-nums}
html.is-v2 body:not(.is-pp) .cv2-toc .t{min-width:0}
html.is-v2 body:not(.is-pp) .cv2-toc a:hover{background:rgba(17,17,16,.05);color:var(--ink)}
html.is-v2 body:not(.is-pp) .cv2-toc a[aria-current]{color:var(--ink)}
html.is-v2 body:not(.is-pp) .cv2-toc a[aria-current] .n{color:var(--case-text)}
html.is-v2 body:not(.is-pp) .cv2-toc a[aria-current] .t::after{content:"";display:inline-block;width:6px;height:6px;margin-left:9px;border-radius:50%;background:var(--case-mark);vertical-align:.1em}
html.is-v2 body:not(.is-pp) .cv2-toc a:focus-visible{outline-offset:-2px}

/* header label: absolutely placed, so it never moves the nav or the actions */
html.cv2-mode-head.is-v2 body:not(.is-pp) .cv2-chap{display:block;position:absolute;right:calc(100% + 12px);top:50%;width:calc(var(--chap-w,160px) + 28px);transform:translateY(-50%);
  opacity:0;visibility:hidden;transition:opacity .3s var(--cv2-ease),visibility 0s .3s}
html.cv2-mode-head.cv2-inrange.is-v2 body:not(.is-pp) .cv2-chap,html.cv2-mode-head.cv2-toc-open.is-v2 body:not(.is-pp) .cv2-chap{opacity:1;visibility:visible;transition:opacity .4s var(--cv2-ease),visibility 0s}
html.is-v2 body:not(.is-pp) .cv2-chap-btn{display:flex;align-items:center;justify-content:flex-end;gap:6px;width:100%;height:34px;margin:0;padding:0 2px 0 8px;border:0;border-radius:10px;background:transparent;cursor:pointer;
  color:var(--muted);font:500 11px/1 var(--mono);letter-spacing:0;white-space:nowrap;transition:color .25s}
html.is-v2 body:not(.is-pp) .cv2-chap-btn:hover,html.is-v2 body:not(.is-pp) .cv2-chap-btn[aria-expanded="true"]{color:var(--ink)}
html.is-v2 body:not(.is-pp) .cv2-chap-btn svg{flex:none;width:12px;height:12px;transition:transform .3s var(--cv2-out)}
html.is-v2 body:not(.is-pp) .cv2-chap-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
html.is-v2 body:not(.is-pp) .cv2-chap-txt{display:block;overflow:hidden;text-overflow:ellipsis;transition:opacity .18s linear}
html.is-v2 body:not(.is-pp) .cv2-chap-txt.is-out{opacity:0}
html.cv2-mode-head.is-v2 body:not(.is-pp) .cv2-toc{display:block;position:absolute;top:calc(100% + 14px);right:-6px;width:max(280px,calc(var(--chap-w,160px) + 120px));max-height:calc(100vh - 140px);overflow:auto;
  padding:8px;border:1px solid rgba(17,17,16,.1);border-radius:16px;background:rgba(250,249,245,.97);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  box-shadow:0 24px 60px -24px rgba(17,17,16,.4);text-align:left;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s var(--cv2-ease),transform .3s var(--cv2-out),visibility 0s .2s}
html.cv2-mode-head.cv2-toc-open.is-v2 body:not(.is-pp) .cv2-toc{opacity:1;visibility:visible;transform:none;transition:opacity .24s var(--cv2-ease),transform .4s var(--cv2-out),visibility 0s}
/* dark header state (set by shared.js) */
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-chap-btn{color:#A2A09A}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-chap-btn:hover,html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-chap-btn[aria-expanded="true"]{color:#EFEEE8}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc{border-color:rgba(239,238,232,.14);background:rgba(28,28,26,.96);box-shadow:0 24px 60px -24px rgba(0,0,0,.6)}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc a{color:#CFCDC6}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc a:hover{background:rgba(239,238,232,.07);color:#fff}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc a[aria-current]{color:#fff}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc .n{color:#8F8D87}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc a[aria-current] .n{color:#EFEEE8}
html.is-v2 body:not(.is-pp) .site-header.v2-dark .cv2-toc a[aria-current] .t::after{background:var(--case-accent)}

/* bottom pill */
html.cv2-mode-pill.is-v2 body:not(.is-pp) .cv2-pill{
  display:flex;align-items:center;gap:10px;position:fixed;z-index:80;right:16px;bottom:16px;
  max-width:calc(100vw - 188px);height:38px;padding:0 15px 0 13px;border:1px solid rgba(17,17,16,.1);border-radius:999px;
  background:rgba(245,244,239,.92);-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  box-shadow:0 10px 30px -14px rgba(17,17,16,.35);color:var(--ink);font:500 11.5px/1 var(--mono);letter-spacing:.04em;cursor:pointer;
  overflow:hidden;opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .24s var(--cv2-ease),transform .48s var(--cv2-out),visibility 0s .24s}
html.cv2-mode-pill.cv2-inrange.is-v2 body:not(.is-pp) .cv2-pill,html.cv2-mode-pill.cv2-toc-open.is-v2 body:not(.is-pp) .cv2-pill{opacity:1;visibility:visible;transform:none;transition:opacity .3s var(--cv2-ease),transform .48s var(--cv2-out),visibility 0s}
@media (max-width:860px){
  html.cv2-mode-pill.cv2-inrange.cv2-reading:not(.cv2-toc-open).is-v2 body:not(.is-pp) .cv2-pill{opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .24s var(--cv2-ease),transform .48s var(--cv2-out),visibility 0s .24s}
}
html.is-v2 body:not(.is-pp) .cv2-pill .n{flex:none;color:var(--case-text);font-variant-numeric:tabular-nums}
html.is-v2 body:not(.is-pp) .cv2-pill .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.cv2-mode-pill.is-v2 body:not(.is-pp) .cv2-toc{
  display:block;position:fixed;z-index:81;right:16px;bottom:62px;width:min(320px,calc(100vw - 32px));max-height:calc(100vh - 140px);overflow:auto;
  padding:8px;border:1px solid rgba(17,17,16,.1);border-radius:18px;
  background:rgba(245,244,239,.97);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 24px 60px -24px rgba(17,17,16,.45);
  opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);transform-origin:100% 100%;
  transition:opacity .2s var(--cv2-ease),transform .3s var(--cv2-out),visibility 0s .2s}
html.cv2-mode-pill.cv2-toc-open.is-v2 body:not(.is-pp) .cv2-toc{opacity:1;visibility:visible;transform:none;transition:opacity .24s var(--cv2-ease),transform .4s var(--cv2-out),visibility 0s}
html.cv2-mode-pill.is-v2 body:not(.is-pp) .cv2-toc a{padding:11px 10px}
html.cv2-mode-pill.is-v2 body:not(.is-pp) .cv2-toc li+li a{box-shadow:0 -1px 0 rgba(17,17,16,.06)}
html.is-v2 body:not(.is-pp) .case-content .cv2-anchor{scroll-margin-top:150px}

/* ---------- small screens ---------- */
@media (max-width:640px){
  html.is-v2 body:not(.is-pp) .case-content .kicker.cv2-opener{column-gap:12px;margin-top:96px}
  html.is-v2 body:not(.is-pp) .case-content>.cv2-after-fig.kicker{margin-top:96px}
  html.is-v2 body:not(.is-pp) .cv2-kn{font-size:60px}
  html.is-v2 body:not(.is-pp) .case-content .kicker.cv2-opener+h2.chapter{margin-top:22px}
  html.is-v2 body:not(.is-pp) .case-content>p.cv2-pull{padding-left:20px;font-size:23px}
  html.is-v2 body:not(.is-pp) .cv2-bleed>.art-panel.art-dark,html.is-v2 body:not(.is-pp) .cv2-bleed>.impact{padding:56px 20px}
  html.is-v2 body:not(.is-pp) .cv2-bleed>.art-cap{margin-left:20px;margin-right:20px}
  html.is-v2 body:not(.is-pp) .next-case .t{font-size:clamp(34px,10vw,44px)}
  html.is-v2 body:not(.is-pp) .next-case .t .ico{width:22px;height:22px;padding:17px}
  html.is-v2 body:not(.is-pp) .next-case.has-thumb{grid-template-columns:minmax(0,1fr);gap:32px}
  html.is-v2 body:not(.is-pp) .next-case.has-thumb{--nt-w:calc(100vw - 32px);--nt-s:.47105}
  html.is-v2 body:not(.is-pp) .next-thumb{order:1;width:100%;transform:none}
  html.is-v2 body:not(.is-pp) .next-thumb .nt-card{width:760px;height:553px;transform:scale(var(--nt-s))}
  html.is-v2 body:not(.is-pp) .next-thumb .nt-card .case-visual{transform:none;width:100%;height:100%;margin:0}
}
/* narrow phones: keep the next-case thumbnail scaled to (100vw - 32px) / 760px so it is not clipped */
@media (max-width:389px){html.is-v2 body:not(.is-pp) .next-case.has-thumb{--nt-s:.4513}}
@media (max-width:369px){html.is-v2 body:not(.is-pp) .next-case.has-thumb{--nt-s:.4316}}
@media (max-width:349px){html.is-v2 body:not(.is-pp) .next-case.has-thumb{--nt-s:.379}}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html.is-v2 body:not(.is-pp) .cv2-chap,html.is-v2 body:not(.is-pp) .cv2-chap-txt,html.is-v2 body:not(.is-pp) .cv2-toc,html.is-v2 body:not(.is-pp) .cv2-pill{transition:none!important}
  html.is-v2 body:not(.is-pp) .cv2-li,html.is-v2 body:not(.is-pp) .cv2-krule,html.is-v2 body:not(.is-pp) .cv2-kn,html.is-v2 body:not(.is-pp) .cv2-kl{transform:none!important;opacity:1!important;transition:none!important}
  html.is-v2 body:not(.is-pp) .cv2-fig{animation:none!important;opacity:1!important}
  html.is-v2 body:not(.is-pp) .next-thumb,html.is-v2 body:not(.is-pp) .next-case:hover .next-thumb{transform:none;transition:none}
  html.is-v2 body:not(.is-pp) .next-case:hover .next-thumb .ac-hero-stage>*{translate:none;scale:none;rotate:none}
  html.is-v2 body:not(.is-pp) .next-case .t .ico,html.is-v2 body:not(.is-pp) .next-case .cv2-nt{transition:none}
  html.is-v2 body:not(.is-pp) .case-hero-visual.cv2-cover .mockup-stage{transform:none}
}

/* next-case thumbnails with a single phone: centre it in the frame (the theme's peek layout leaves it left) */
html.is-v2 body:not(.is-pp) .next-thumb .mockup-stage:not(:has(.ac-hero-stage))>.device{left:50%!important;right:auto!important;transform:translateX(-50%)!important}
/* the theme gives Lume's next-case block no brand class: give it Lume's pink */
html.is-v2 body:not(.is-pp) .next-case:not([class*=" is-"]):has(.next-link[href*="/lume"]){--ca:#FF009B}
/* touch screens never hover: show the thumbnail at full size instead of the resting .86 */
@media (hover:none){html.is-v2 body:not(.is-pp) .next-thumb{transform:none}}
/* the phone always sits in front of the browser in the thumbnail */
html.is-v2 body:not(.is-pp) .next-thumb .ac-hero-stage>.browser{z-index:1!important}
html.is-v2 body:not(.is-pp) .next-thumb .ac-hero-stage>.device{z-index:2!important}
