/* Shared surface, spacing and motion system. Keep rules on data tables and
   functional controls; use tonal grouping for editorial content. */
:root {
  --sf-space-1:8px;
  --sf-space-2:16px;
  --sf-space-3:24px;
  --sf-space-4:32px;
  --sf-space-5:48px;
  --sf-space-6:64px;
  --sf-space-section:48px;
  --sf-space-content:24px;
  --sf-card-pad:clamp(24px,3vw,32px);
  --sf-surface:rgba(255,255,255,.58);
  --sf-surface-inset:rgba(255,255,255,.48);
  --sf-surface-shadow:0 12px 40px -28px #30244730;
  --sf-glass-edge:rgba(255,255,255,.8);
  --sf-liquid-ease:cubic-bezier(.2,.8,.2,1);
}
html.dark {
  --sf-surface:rgba(255,255,255,.045);
  --sf-surface-inset:rgba(255,255,255,.035);
  --sf-surface-shadow:0 16px 40px -28px #0005;
  --sf-glass-edge:rgba(255,255,255,.12);
}
.sf-glass {
  border:0;
  background:linear-gradient(145deg,var(--sf-surface-inset),transparent 65%),var(--sf-surface);
  box-shadow:var(--sf-surface-shadow),inset 0 1px 0 var(--sf-glass-edge);
  border-radius:24px;
}
.sf-glass::before,.sf-glass::after { display:none; }
.sf-section { border:0; padding-block:var(--sf-space-section); scroll-margin-top:112px; }
.sf-section+.sf-section { padding-top:0; border:0; }
.sf-section__head { margin-bottom:var(--sf-space-content); gap:16px 32px; }
.sf-section__head h2 { margin-top:12px; max-width:28ch; }
.sf-section__title .sf-eyebrow__num { display:none; }
.sf-block { margin-top:var(--sf-space-content); }
.sf-points,.sf-topic-grid,.sf-feature-grid,.fx-row,.fx-results,.sf-continue { gap:var(--sf-space-content); }
.sf-point,.sf-closing-note,.sf-evidence-note,.sf-continue,.sf-outcome__note,
.sf-practice-strip,.sf-practice-strip li+li,.sf-project-art,.sf-work-card__image,
.sf-topic-card__footer,.sf-project__children,.sf-project__children li+li,
.sf-work-card__features,.sf-cover-diagram li,.sf-footer,.sf-map-branches { border:0; }
.sf-point { padding-top:0; }
.sf-evidence-note { padding:16px 20px; background:var(--sf-surface-inset); border-radius:16px; }
.sf-text-link { border:0; }
.sf-topic-grid>li>a.sf-topic-card { border:0; box-shadow:var(--sf-surface-shadow); background:var(--sf-surface); }
.sf-topic-card__footer .bi { transition:transform .2s ease; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .sf-topic-grid>li>a.sf-topic-card { transition:background .2s ease,transform .2s ease; }
  .sf-topic-grid>li>a.sf-topic-card:hover { background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); transform:translateY(-3px); }
  .sf-topic-grid>li>a.sf-topic-card:hover .sf-topic-card__footer .bi { transform:translate(3px,-3px); }
}
.sf-walkthrough,.sf-walkthrough__media,.sf-mock-stage,.sf-prompt,.fx-choice { border:0; }
.sf-walkthrough { padding:var(--sf-card-pad); }
.sf-continue { margin-top:0; padding-block:16px 64px; }
.sf-continue__link { min-height:0; padding:32px; gap:2px 20px; align-content:center; }
.sf-continue__direction { line-height:1.15; }
.sf-continue__link > strong { line-height:1.2; }
.sf-continue__arrow { border:0; background:var(--sf-surface-inset); }
.sf-continue__link.is-overview .sf-continue__arrow .bi { font-size:1.05rem; }
.sf-continue__link.is-back,
.sf-continue__link:first-of-type:not(.is-overview) { grid-template-columns:44px minmax(0,1fr); }
.sf-continue__link.is-back .sf-continue__arrow,
.sf-continue__link:first-of-type:not(.is-overview) .sf-continue__arrow { grid-column:1; }
.sf-continue__link.is-back .sf-continue__direction,
.sf-continue__link.is-back > strong,
.sf-continue__link:first-of-type:not(.is-overview) .sf-continue__direction,
.sf-continue__link:first-of-type:not(.is-overview) > strong { grid-column:2; }
.sf-page :where(a,button,input,select,summary,[tabindex]) { scroll-margin-block:120px 32px; }
/* Open list rows remain easy to scan without ruled separators. */
.sf-project,.sf-projects>.sf-project:first-child { border:0; padding:32px; background:var(--sf-surface); border-radius:28px; }
.sf-project__children { display:grid; gap:4px; margin-top:24px; }
.sf-project__children a,.sf-project__children li:last-child a { border:0; border-radius:12px; padding:10px 12px; }
.sf-project__children a:hover { background:var(--sf-surface-inset); }
.sf-work-card__features { gap:4px 8px; }
.sf-work-card__features a { margin-inline:-6px; padding:8px 10px; border-radius:12px; color:var(--sf-text); transition:background .18s var(--sf-liquid-ease),color .18s var(--sf-liquid-ease); }
.sf-work-card__features a:hover,.sf-work-card__features a:focus-visible { background:var(--sf-surface-inset); color:var(--sf-accent-ink); text-decoration:none; }
.sf-plain-list li,.sf-plain-list li:last-child,.fx-choice+.fx-choice { border:0; }
.sf-index-cols { gap:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.sf-index-cols>div { display:flex; flex-direction:column; padding:24px 26px; border-radius:24px; background:var(--sf-surface); box-shadow:var(--sf-surface-shadow); }
.sf-index-cols h3 { display:flex; align-items:center; gap:12px; margin:0 0 12px; padding-bottom:14px; font-size:1.05rem; font-weight:700; letter-spacing:-.01em; border-bottom:1px solid color-mix(in srgb,var(--sf-ink) 8%,transparent); }
.sf-index-cols h3::before { content:""; width:10px; height:10px; border-radius:99px; background:var(--sf-accent); box-shadow:0 0 0 4px var(--sf-accent-soft); flex-shrink:0; }
.sf-index-cols h3 a { flex:1; display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:28px; font-size:inherit; font-weight:700; color:var(--sf-ink); text-decoration:none; }
.sf-index-cols h3 a::after { content:"Overview →"; font-size:.74rem; font-weight:600; letter-spacing:.01em; color:var(--sf-muted); padding:4px 10px; border-radius:999px; background:var(--sf-surface-inset); transition:background .18s var(--sf-liquid-ease),color .18s var(--sf-liquid-ease); }
.sf-index-cols h3 a:hover { color:var(--sf-accent-ink); text-decoration:none; }
.sf-index-cols h3 a:hover::after { background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); }
.sf-index-cols ol { list-style:none; counter-reset:study; margin:0; padding:0; display:grid; gap:4px; }
.sf-index-cols ol li { counter-increment:study; }
.sf-index-cols ol a { display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:42px; padding:8px 10px; margin-inline:-10px; border-radius:12px; font-size:.9rem; font-weight:500; color:var(--sf-text); text-decoration:none; transition:background .18s var(--sf-liquid-ease),color .18s var(--sf-liquid-ease); }
.sf-index-cols ol a::before { content:counter(study); display:inline-grid; place-items:center; width:26px; height:26px; border-radius:8px; background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); font-size:.75rem; font-weight:700; font-variant-numeric:tabular-nums; }
.sf-index-cols ol a::after { content:"→"; font-size:.9rem; color:var(--sf-muted); opacity:.65; transition:transform .2s var(--sf-liquid-ease),color .2s var(--sf-liquid-ease),opacity .2s var(--sf-liquid-ease); }
.sf-index-cols ol a:hover { background:var(--sf-surface-inset); color:var(--sf-accent-ink); text-decoration:none; }
.sf-index-cols ol a:hover::after { color:var(--sf-accent-ink); opacity:1; transform:translateX(3px); }
@media(max-width:760px) { .sf-index-cols { grid-template-columns:1fr; } .sf-index-cols>div { padding:20px; } }
.fx-layers { border:0; gap:12px; }
.fx-layers__item { border:0; padding:20px; border-radius:16px; background:var(--sf-surface); }
.sf-document section { border:0; }
/* Only floating navigation and overlays carry a refractive edge. */
.sf-header__bar { border-radius:28px; border:0; padding:10px 20px; background:rgba(250,249,253,.76); backdrop-filter:blur(32px) saturate(160%); -webkit-backdrop-filter:blur(32px) saturate(160%); box-shadow:0 12px 32px -20px #28203738,inset 0 1px 0 #fff9; }
html.dark .sf-header__bar { background:rgba(31,29,39,.76); box-shadow:0 12px 32px -20px #0008,inset 0 1px 0 #ffffff12; }
.sf-header__bar::before { display:block; opacity:.7; background:radial-gradient(180px circle at var(--sf-mx) var(--sf-my),var(--sf-rim-light),transparent 80%),linear-gradient(155deg,var(--sf-rim-hi),transparent 35%,transparent 70%,var(--sf-rim-mid)); }
.sf-header__actions { gap:4px; }
.sf-icon-btn,.sf-search-btn,.sf-header__actions .sf-icon-btn,.sf-header__actions .sf-search-btn { border:0; box-shadow:none; background:transparent; border-radius:50%; }
.sf-icon-btn:hover,.sf-search-btn:hover,.sf-header__actions .sf-icon-btn:hover { background:var(--sf-surface-inset); border:0; box-shadow:none; }
.sf-logo__mark { box-shadow:none; background:transparent; }
.sf-footer__id .sf-logo__mark { width:32px; height:32px; border-radius:10px; font-size:13px; background:linear-gradient(145deg,#45434d,#24232b 68%); box-shadow:inset 0 1px 0 #ffffff30,0 4px 12px -6px #0009; }
.sf-nav__link { border-radius:999px; }
/* One rounded track with an elastic, translucent selection lens. */
.sf-filter { padding:0; border-radius:0; gap:16px 24px; background:none; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.sf-filter .sf-tabs__list { border-radius:999px; padding:6px; gap:4px; }
.sf-tabs__list { position:relative; isolation:isolate; padding:6px; gap:4px; border-radius:999px; background:color-mix(in srgb,var(--sf-ink) 5%,transparent); max-width:100%; }
.sf-tab { border-radius:999px; min-height:44px; padding:10px 18px; position:relative; z-index:1; }
.sf-liquid-track { position:relative; isolation:isolate; }
.sf-liquid-track .sf-liquid-lens { position:absolute; left:0; top:0; z-index:0; border-radius:999px; pointer-events:none; background:linear-gradient(155deg,var(--sf-surface-inset),transparent),var(--sf-surface); box-shadow:inset 0 1px 0 var(--sf-glass-edge),0 3px 10px #0000000a; backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%); transition:left .48s var(--sf-liquid-ease),top .48s var(--sf-liquid-ease),width .48s var(--sf-liquid-ease),height .48s var(--sf-liquid-ease); }
.sf-liquid-track .sf-tab:is([aria-selected=true],[aria-pressed=true],[aria-checked=true]),html:not(.mx) .sf-liquid-track .sf-nav__link[aria-current] { background:transparent; box-shadow:none; color:var(--sf-ink)!important; }
.sf-nav__list>li:not(.sf-liquid-lens) { position:relative; z-index:1; }
.sf-nav__glow { display:none; }
.sf-filter__count { padding:0; font-size:.75rem; }
.sf-tabs__panel { margin-top:0; padding-top:24px; }
/* Breadcrumb disclosure replaces the persistent reading toolbar. */
.sf-hero__top { position:relative; z-index:20; align-items:center; gap:16px; margin-bottom:40px; }
.sf-study-crumbs { min-width:0; }
.sf-study-crumbs>ol { flex-wrap:wrap; gap:8px 12px; }
.sf-study-crumbs>ol>li { min-width:0; }
.sf-crumb-menu { position:relative; }
.sf-crumb-menu summary { list-style:none; display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 14px; border-radius:999px; cursor:pointer; background:var(--sf-surface-inset); color:var(--sf-ink); font-weight:550; font-size:.8rem; }
.sf-crumb-menu summary::-webkit-details-marker { display:none; }
.sf-crumb-menu summary .bi { font-size:10px; transition:transform .35s var(--sf-liquid-ease); }
.sf-crumb-menu[open] summary .bi { transform:rotate(180deg); }
.sf-crumb-menu__panel { position:absolute; top:calc(100% + 12px); left:0; width:min(360px,calc(100vw - 40px)); padding:12px; max-height:min(65vh,540px); overflow:auto; transform-origin:24px top; background:var(--sf-glass-strong); backdrop-filter:blur(32px) saturate(150%); -webkit-backdrop-filter:blur(32px) saturate(150%); box-shadow:0 20px 60px -20px #0006,inset 0 1px 0 var(--sf-glass-edge); }
.sf-crumb-menu__panel .sf-eyebrow { font-size:.62rem; padding:12px; margin:0; }
.sf-page .sf-crumb-menu__panel a { display:flex; align-items:center; gap:12px; min-height:44px; padding:12px; border-radius:12px; color:var(--sf-text); text-decoration:none; font-size:.8rem; line-height:1.5; }
.sf-crumb-menu__panel a:is(:hover,[aria-current]) { background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); }
.sf-crumb-menu__panel a .bi { color:var(--sf-accent-ink); }
/* Hero: clear introduction, framed artifact, then a single context group. */
.sf-cs>.sf-hero { padding-block:var(--sf-space-3) 0; }
.sf-cs .sf-hero__grid { gap:48px; align-items:center; }
.sf-cs .sf-hero__title { font-size:clamp(2.4rem,3.8vw,3.65rem); line-height:1.12; letter-spacing:-.045em; max-width:19ch; margin-top:16px; }
.sf-hero__summary { margin-top:24px; max-width:52ch; }
.sf-hero__links { margin-top:24px; gap:16px 24px; }
.sf-hero__links>span { display:none; }
.round-lg { border-radius:16px; }
.sf-project-cover { padding:24px; border-radius:28px; align-self:center; }
.sf-project-cover img { border-radius:16px; max-height:340px; width:auto; max-width:100%; height:auto; margin-inline:auto; }
.sf-project-cover figcaption { font-size:.72rem; padding:16px 4px 0; }
.sf-cs>.sf-hero .sf-meta { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin-top:40px; padding:24px 32px; border:0; border-radius:24px; gap:24px 32px; background:var(--sf-surface); }
.sf-cs .sf-meta__item { padding:0; border:0; }
.sf-meta dt { font-size:.65rem; }
.sf-meta dd { margin-top:8px; font-size:.84rem; line-height:1.6; }
.sf-cs .sf-evidence-note { margin-top:16px!important; background:none; padding:0 4px; font-size:.75rem; }
/* Illustrated process cards share a visual language, without step numbers. */
.sf-journey { border:0; padding:0!important; background:none; gap:24px; }
.sf-journey__step { padding:24px; border-radius:24px; background:var(--sf-surface); box-shadow:var(--sf-surface-shadow); }
.sf-journey__visual { height:auto; margin:0 0 24px; display:block; }
.sf-journey__visual .sf-scene { width:100%; height:auto; display:block; max-height:152px; overflow:visible; }
.sf-scene .scene-ground { fill:var(--sf-accent-soft); opacity:.6; stroke:none; }
.sf-scene .scene-halo { fill:var(--sf-accent-soft); opacity:.45; stroke:none; }
.sf-scene .scene-lines { stroke:var(--sf-accent-ink); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; fill:var(--sf-solid); }
.sf-scene .scene-paper { fill:var(--sf-solid); }
.sf-scene .scene-accent,.sf-scene .scene-dot { fill:var(--sf-accent-ink); stroke:none; }
.sf-scene .scene-lens { fill:var(--sf-accent-soft); fill-opacity:.85; stroke-width:2.5; }
.sf-scene .scene-heavy { stroke-width:3; fill:none; }
.sf-scene .scene-route { fill:none; stroke-dasharray:4 6; }
.sf-scene .scene-spark { fill:var(--sf-accent-soft); stroke-width:2; }
.sf-journey__copy { gap:12px; }
.sf-journey__copy .sf-eyebrow { font-size:.65rem; }
.sf-journey__copy strong { font-size:.95rem; font-weight:550; line-height:1.55; }
.sf-journey--compact .sf-journey__step { grid-template-columns:112px 1fr; gap:24px; align-items:center; }
.sf-journey--compact .sf-journey__visual { margin:0; }
.sf-journey--compact .sf-scene { display:block; }
.sf-feature-diagram { padding:32px; }
.sf-feature-diagram li { grid-template-columns:88px minmax(0,1fr); gap:20px; align-items:center; }
.sf-feature-diagram__node { width:88px; height:64px; background:none; border:0; box-shadow:none; }
.sf-feature-diagram__node .sf-scene { width:110px; height:76px; }
.sf-feature-diagram__line { display:none; }
.sf-feature-diagram ol { gap:24px; }
.sf-feature-diagram figcaption { margin-bottom:24px; }
/* Related studies: each link is a complete, padded card. */
.sf-feature { display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding:32px; min-height:280px; text-decoration:none!important; color:var(--sf-ink); overflow:hidden; }
.sf-feature__top { display:flex; width:100%; align-items:center; justify-content:space-between; gap:16px; }
.sf-feature h3 { font-size:1.4rem; line-height:1.35; letter-spacing:-.025em; max-width:30ch; }
.sf-feature__result { display:flex; gap:10px; align-items:flex-start; font-size:.85rem; color:var(--sf-text-2); line-height:1.6; margin:0; }
.sf-feature__result .bi { color:var(--sf-accent-ink); }
.sf-feature__go { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:auto; padding-top:8px; font-size:.8rem; font-weight:600; color:var(--sf-accent-ink); }
.sf-feature__go .bi { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--sf-accent-soft); }
.sf-feature:hover { transform:translateY(-3px); }
.sf-feature-grid .sf-index__row { padding:32px; border-radius:24px; min-height:280px; gap:20px; }
/* Evidence groups: status header, short context, then clearly spaced items. */
.fx-results { gap:24px; }
.fx-results__group { border:0; padding:32px; gap:24px; border-radius:24px; }
.fx-results__title { text-transform:none; letter-spacing:-.015em; font-size:1.15rem; color:var(--sf-ink); line-height:1.4; gap:12px; align-items:center; }
.fx-results__title>.bi { display:grid; place-items:center; width:40px; height:40px; border-radius:14px; background:var(--sf-accent-soft); color:var(--sf-accent-ink); flex:none; }
.fx-results__group.is-ok .fx-results__title>.bi { background:color-mix(in srgb,var(--sf-ok) 12%,transparent); color:var(--sf-ok); }
.fx-results__group .fx-facts { grid-template-columns:1fr; gap:12px; }
.fx-results__group .fx-facts>li { padding:16px; border-radius:16px; background:var(--sf-surface-inset); gap:16px; align-items:center; }
.fx-results__group .fx-facts__icon { background:none; border:0; box-shadow:none; width:32px; height:32px; flex:none; }
.fx-results__group .fx-facts__body { gap:6px; }
.fx-results__group .fx-facts__body>strong { font-size:.875rem; line-height:1.5; }
.fx-results__group .fx-facts__body>span { font-size:.8rem; line-height:1.6; }
/* Dialogs use the same material and spring as dropdowns and tabs. */
.sf-palette,.sf-consent-dialog,.sf-lightbox { border:0; border-radius:28px; box-shadow:0 32px 80px -24px #0006,inset 0 1px 0 var(--sf-glass-edge); background:var(--sf-glass-strong); backdrop-filter:blur(36px) saturate(160%); -webkit-backdrop-filter:blur(36px) saturate(160%); }
.sf-palette__bar,.sf-palette__foot,.sf-lightbox__bar { border:0; }
.sf-palette__bar { padding:20px 24px; }
.sf-palette__list { padding:8px 16px 16px; }
.sf-palette__opt { border-radius:16px; }
dialog::backdrop { background:#16132155; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
/* Brief illustration motion on entry; never a perpetual distraction. */
@keyframes sf-scene-float { 0% { transform:translateY(7px) rotate(-3deg); } 55% { transform:translateY(-4px) rotate(2deg); } 100% { transform:none; } }
@keyframes sf-scene-drift { from { transform:translateX(-8px); opacity:.35; } to { transform:none; opacity:1; } }
@media(prefers-reduced-motion:no-preference) {
  /* `backwards`, not `both`: once the entry ends the element is free for hover transitions. */
  .sf-scene.is-visible .scene-float { transform-box:fill-box; transform-origin:center; animation:sf-scene-float 1.5s var(--sf-liquid-ease) var(--scene-delay) backwards; }
  .sf-scene.is-visible .scene-drift { animation:sf-scene-drift 1.2s var(--sf-liquid-ease) var(--scene-delay) backwards; }
  .sf-project-art.is-visible g { animation:sf-scene-float 1.5s var(--sf-liquid-ease) backwards; transform-origin:center; }
}
@media(max-width:1000px) {
  .sf-cs .sf-hero__grid { gap:32px; }
  .sf-journey { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sf-filter { align-items:flex-start; }
  .sf-filter .sf-tabs__list { border-radius:999px; }
}
@media(max-width:700px) {
  .sf-header { inset:10px 0 auto; }
  .sf-header__bar { border-radius:24px; padding:8px 12px; min-height:64px; gap:8px; }
  .sf-header__actions { gap:0; }
  .sf-header__actions .sf-icon-btn,.sf-search-btn { width:44px; min-width:44px; }
  .sf-cs>.sf-hero { padding-top:24px; }
  .sf-hero__top { margin-bottom:32px; align-items:flex-start; }
  .sf-study-crumbs { flex:1; }
  .sf-study-crumbs>ol { gap:4px 8px; }
  .sf-crumb-menu summary { font-size:.73rem; padding-inline:12px; }
  .sf-crumb-menu__panel { position:fixed; top:auto; left:20px; right:20px; width:auto; margin-top:12px; max-height:60vh; }
  .sf-reading-time { font-size:.68rem; padding-top:14px; }
  .sf-cs .sf-hero__grid,.sf-cs--feature .sf-hero__grid { grid-template-columns:1fr; gap:32px; }
  .sf-cs .sf-hero__title { font-size:clamp(2.25rem,8vw,3rem); }
  .sf-cs>.sf-hero .sf-meta { grid-template-columns:1fr; padding:24px; gap:24px; margin-top:32px; }
  .sf-project-cover { padding:16px; }
  .sf-project-cover img { max-height:300px; }
  .sf-filter .sf-tabs__list { gap:4px; width:100%; border-radius:999px; }
  .sf-tab { padding:10px 14px; font-size:.75rem; }
  .sf-journey { grid-template-columns:1fr; gap:16px; }
  .sf-journey__step { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:20px; padding:24px; }
  .sf-journey__visual { margin:0; }
  .sf-journey__visual .sf-scene { width:108px; max-width:none; margin-left:-10px; }
  .sf-journey--compact .sf-journey__step { grid-template-columns:88px minmax(0,1fr); gap:20px; }
  .sf-journey__copy { gap:8px; }
  .fx-results,.sf-continue { grid-template-columns:1fr; gap:16px; }
  .fx-results__group,.sf-feature,.sf-feature-grid .sf-index__row,.sf-feature-diagram { padding:24px; }
  .sf-feature { min-height:270px; }
  .sf-project,.sf-projects>.sf-project:first-child { padding:24px; }
  .sf-feature h3 { font-size:1.25rem; }
  .sf-feature-diagram li { grid-template-columns:72px minmax(0,1fr); gap:16px; }
  .sf-feature-diagram__node { width:72px; }
  .sf-feature-diagram__node .sf-scene { width:96px; }
  .sf-palette { margin-top:100px; max-height:calc(100dvh - 124px); }
}
@media(prefers-reduced-motion:reduce) {
  .sf-page *,.sf-page *::before,.sf-page *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media(prefers-reduced-transparency:reduce) {
  .sf-glass,.sf-header__bar,html.dark .sf-header__bar,.sf-crumb-menu__panel,.sf-palette,.sf-consent-dialog,.sf-lightbox,.sf-liquid-track .sf-liquid-lens { background:var(--sf-solid); backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media(forced-colors:active) {
  .sf-glass,.sf-crumb-menu summary,.sf-tab,.sf-feature,.sf-journey__step { border:1px solid CanvasText; }
  .sf-glass::before,.sf-liquid-lens { display:none; }
  .sf-tab:is([aria-selected=true],[aria-pressed=true]) { outline:2px solid Highlight; }
}
@media print {
  .sf-study-crumbs,.sf-reading-time { display:none; }
  .sf-glass,.sf-journey__step,.fx-results__group { background:white!important; box-shadow:none!important; backdrop-filter:none!important; }
}

/* Token-demo links retain the selected brand hue at a readable dark-mode tone. */
html.dark .sf-tokens .tk-link {
  color:color-mix(in srgb,var(--tk-brand) 35%,white);
  filter:none;
}

/* Reading groups: shared across every case study. */
.sf-points,
.sf-cs .sf-points {
  gap:20px;
  grid-template-columns:1fr;
}
@media(min-width:640px) {
  .sf-points,
  .sf-cs .sf-points {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(min-width:1024px) {
  .sf-points,
  .sf-cs .sf-points {
    grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));
  }
}
.sf-cs .sf-point,.sf-cs .sf-points--stack .sf-point {
  display:flex; flex-direction:column; gap:16px; padding:28px;
  background:var(--sf-surface); border:0; border-radius:24px;
  box-shadow:var(--sf-surface-shadow); min-width:0;
}
.sf-cs .sf-point__icon { display:grid; place-items:center; width:48px; height:48px; margin:0; border-radius:16px; background:var(--sf-accent-soft); color:var(--sf-accent-ink); }
.sf-cs .sf-point h3 { font-size:1.05rem; line-height:1.45; }
.sf-cs .sf-point p { font-size:.9rem; line-height:1.75; margin-top:12px; max-width:60ch; }
.sf-cs .sf-editorial-split { gap:var(--sf-space-content); align-items:stretch; margin-block:var(--sf-space-content) 0; grid-template-columns:1.4fr 1fr; }
.sf-cs .sf-editorial-split>.sf-prose,.sf-cs .sf-margin-note { border:0; border-radius:24px; padding:28px; background:var(--sf-surface); max-width:none; }
.sf-cs .sf-margin-note { background:linear-gradient(135deg,color-mix(in srgb,var(--sf-accent) 18%,var(--sf-surface)),color-mix(in srgb,var(--sf-accent) 6%,var(--sf-surface))); box-shadow:var(--sf-surface-shadow),inset 0 0 0 1px color-mix(in srgb,var(--sf-accent-ink) 20%,transparent); align-content:center; }
.sf-cs .sf-margin-note p { font-size:1.1rem; line-height:1.65; }
.sf-cs .sf-closing-note { border:0; padding:28px; border-radius:24px; background:var(--sf-surface); max-width:none; font-size:1.05rem; margin-block:var(--sf-space-content) 0; }
.sf-cs .fx-facts { gap:20px; }
.sf-cs .fx-facts>li { padding:24px; background:var(--sf-surface); border-radius:20px; align-items:start; min-width:0; }
.sf-cs .fx-facts__body { gap:8px; }
.sf-cs .fx-facts__body>span { line-height:1.7; }
.sf-cs .fx-results__group .fx-facts>li { padding:16px; background:var(--sf-surface-inset); }
.fx-waffle-card { gap:40px; }
.fx-waffle-split { align-items:center; }
@media (min-width:960px) { .fx-waffle-split { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(24px,3.5vw,44px); } }
.fx-facts--list,.sf-cs .fx-facts--list,.sf-cs .fx-row>.fx-facts { grid-template-columns:1fr; gap:36px; margin:0; padding:0; }
.fx-facts--list>li,.sf-cs .fx-facts--list>li { padding:0; background:none; border:0; border-radius:0; box-shadow:none; align-items:start; }
/* Facts beside a figure are glass cards like every other fact card (the rim needs the padding). */
.sf-cs .fx-row>.fx-facts>li { padding:24px; background:var(--sf-surface); border:0; border-radius:20px; align-items:start; }
.sf-cs .sf-table-wrap:has(.sf-evidence-table) { margin-block:var(--sf-space-content) 0; padding:24px; border-radius:24px; background:var(--sf-surface); }
.sf-evidence-table th,.sf-evidence-table td { border-color:color-mix(in srgb,var(--sf-muted) 18%,transparent); }
.sf-evidence-table tbody tr:last-child>* { border-bottom:0; }
.sf-cs .fx-head { display:grid; gap:8px; margin-bottom:24px; }
.sf-cs .fx-note { max-width:72ch; line-height:1.65; }
.sf-evidence-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--sf-space-content); }
.sf-evidence-card { display:flex; flex-direction:column; gap:16px; padding:28px; border-radius:24px; background:var(--sf-surface); }
.sf-evidence-card h3 { font-size:clamp(2rem,3vw,3rem); letter-spacing:-.04em; color:var(--sf-accent-ink); }
.sf-evidence-card>p { font-size:.8rem; color:var(--sf-muted); line-height:1.6; }
.sf-evidence-card__limit { margin-top:auto; padding:20px; border-radius:16px; background:var(--sf-surface-inset); }
.sf-evidence-card__limit strong { font-size:.8rem; }
.sf-evidence-card__limit p { margin-top:8px; font-size:.8rem; line-height:1.7; }
.sf-evidence-track { height:8px; border-radius:999px; background:color-mix(in srgb,var(--sf-ink) 13%,transparent); overflow:hidden; }
.sf-evidence-track i { display:block; height:100%; background:var(--sf-accent-ink); border-radius:inherit; transform-origin:left; }
.sf-problem-map { margin:0; padding:32px; border-radius:28px; background:var(--sf-surface); }
.sf-problem-map figcaption { display:grid; gap:10px; margin-bottom:28px; }
.sf-problem-map figcaption>strong { font-size:1.25rem; line-height:1.4; color:var(--sf-ink); }
.sf-problem-map figcaption>small { font-size:.72rem; color:var(--sf-muted); }
.sf-problem-map__body { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:stretch; }
.sf-problem-map__node { padding:24px; border-radius:20px; background:var(--sf-surface-inset); }
.sf-problem-map__node:nth-child(1) { grid-column:1; }
.sf-problem-map__node:nth-child(2) { grid-column:2; }
.sf-problem-map__node:nth-child(3) { grid-column:3; }
.sf-problem-map__symbol { display:grid; place-items:center; width:64px; height:64px; border-radius:22px; margin-bottom:20px; color:var(--sf-accent-ink); background:radial-gradient(circle at 25% 15%,var(--sf-glass-edge),transparent 65%),var(--sf-accent-soft); font-size:26px; }
.sf-problem-map__node strong { font-size:.95rem; line-height:1.5; }
.sf-problem-map__node p { font-size:.85rem; line-height:1.65; margin-top:10px; }
/* Spans the grid gap on both sides so the lines touch the cards and the outcome. */
.sf-problem-map__wires { grid-column:1 / -1; display:block; width:100%; height:84px; margin-block:-20px; overflow:visible; pointer-events:none; }
.sf-problem-map__wires .sf-pm-flow { fill:none; stroke:var(--sf-accent-ink); stroke-width:1.75; stroke-linecap:round; stroke-dasharray:2 6; opacity:.75; }
.sf-problem-map__wires .sf-pm-arrow { fill:var(--sf-accent-ink); opacity:.9; }
.sf-problem-map__wires .sf-pm-dot { fill:var(--sf-accent-ink); opacity:.9; }
@keyframes sf-pm-flow-down { to { stroke-dashoffset:-16; } }
@media (prefers-reduced-motion: no-preference) {
  .sf-problem-map__wires .sf-pm-flow { animation:sf-pm-flow-down .9s linear infinite; }
}
.sf-problem-map__outcome { grid-column:1 / -1; position:relative; z-index:1; display:flex; gap:16px; align-items:center; background:var(--sf-accent-soft); padding:20px 24px; border-radius:16px; color:var(--sf-accent-on-soft); }
.sf-problem-map__outcome p { color:inherit; font-size:.9rem; line-height:1.65; }
/* The outcome as a pull quote, matching .sf-quote: a gradient accent bar and large type. */
.sf-problem-map__outcome--quote { margin:0; align-items:flex-start; gap:14px; padding:4px 0 4px 26px; border-radius:0; background:none; color:var(--sf-ink); }
.sf-problem-map__outcome--quote::before { content:""; position:absolute; left:0; top:4px; bottom:4px; width:3px; border-radius:3px; background:linear-gradient(var(--sf-accent), var(--sf-accent-2, var(--sf-accent))); }
.sf-problem-map__outcome--quote .bi-quote { flex:none; font-size:1.7rem; line-height:1; color:var(--sf-accent-ink); opacity:.85; margin-top:-3px; }
.sf-problem-map__outcome--quote p { max-width:62ch; color:var(--sf-ink); font-size:clamp(1.1rem, .98rem + .5vw, 1.4rem); font-weight:650; letter-spacing:-.018em; line-height:1.4; }
@media(max-width:900px) { .sf-evidence-cards { grid-template-columns:1fr; } }
@media(max-width:700px) {
 .sf-cs .sf-editorial-split { grid-template-columns:1fr; }
 .sf-problem-map__body { grid-template-columns:1fr; }
 .sf-problem-map__node:nth-child(n) { grid-column:1; }
 .sf-cs .sf-point,.sf-cs .sf-points--stack .sf-point,.sf-cs .sf-editorial-split>.sf-prose,.sf-cs .sf-margin-note,.sf-problem-map,.sf-evidence-card { padding:24px; }
 .sf-problem-map__node { padding:20px; }
 .sf-problem-map__wires { height:64px; }
 .sf-problem-map__symbol { width:48px; height:48px; font-size:22px; margin-bottom:16px; }
}
@media print {
 .sf-problem-map,.sf-problem-map__node,.sf-evidence-card,.sf-cs .sf-point { break-inside:avoid; box-shadow:none; }
}
@media(min-width:901px) { .sf-evidence-card__limit { min-height:140px; } }

/* Decision records: read the choice, the alternatives, then its consequences. */
.decision-sheet {display:grid;grid-template-columns:minmax(14rem,.78fr) minmax(0,1.52fr);align-items:stretch;gap:clamp(24px,3.5vw,48px);padding:clamp(22px,3vw,36px);border-radius:26px;background:linear-gradient(115deg,var(--sf-accent-soft) -100%,transparent 54%),var(--sf-surface);box-shadow:var(--sf-surface-shadow)}
.decision-sheet + .decision-sheet {margin-top:var(--sf-space-content)}
.decision-lead {display:grid;align-content:start;justify-items:start;gap:10px}
.decision-lead h3 {font-size:clamp(1.18rem,1.6vw,1.5rem);letter-spacing:-.025em;line-height:1.25;max-width:25ch}
.decision-lead .sf-ink {width:104px;height:68px;margin:0 0 6px -9px}
.sf-ink .ink-base {stroke:var(--sf-accent-ink);stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ink-base rect,.ink-base circle {fill:var(--sf-solid)}
.ink-front {filter:drop-shadow(0 2px 2px #0002)}
.sf-step-symbol.sf-scene {position:relative;isolation:isolate;display:grid;place-items:center;min-height:68px;line-height:1;color:var(--sf-accent-ink);font-size:1.9rem}
.sf-step-symbol::before {content:'';position:absolute;z-index:-1;width:55px;height:49px;border-radius:17px 22px 15px 20px;background:var(--sf-accent-soft);transform:rotate(-8deg)}
.decision-sheet .fx-choice__body {display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0}
.decision-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px;list-style:none;padding:0;margin:0}
.decision-options li {padding:16px 18px;border-radius:16px;background:color-mix(in srgb,var(--sf-ink) 4.5%,var(--sf-surface-inset));display:grid;align-content:start;gap:5px;line-height:1.38}
.decision-status,.nav-specimen__legend {font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--sf-muted)}
.decision-options .is-picked {background:var(--sf-accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sf-accent-ink) 28%,transparent)}
.decision-options .is-picked .decision-status {color:var(--sf-accent-ink)}
.decision-options strong {font-size:.96rem;color:var(--sf-ink)}
.decision-options small {font-size:.84rem;color:var(--sf-text)}
.decision-sheet .fx-choice__scale {gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));flex:1;align-items:stretch}
.decision-sheet .fx-choice__side {display:flex;flex-direction:column;gap:8px;padding:16px 18px;border-radius:16px;background:color-mix(in srgb,var(--sf-ink) 4.5%,var(--sf-surface-inset))}
.decision-sheet .fx-choice__cap {letter-spacing:.09em;font-size:.68rem}
.decision-sheet .is-gain .fx-choice__cap {color:var(--sf-ok)}
.decision-sheet .is-cost .fx-choice__cap {color:#b45309}
html.dark .decision-sheet .is-cost .fx-choice__cap {color:var(--sf-warn)}
.decision-sheet .fx-choice__side ul {margin-top:2px;gap:6px}
.decision-sheet .fx-choice__side li {padding-left:14px;line-height:1.45}
.decision-sheet .fx-choice__side li::before {display:block;width:5px;height:5px;top:.58em;opacity:.45}
.decision-sheet .fx-choice__note {padding:14px 18px;border-radius:14px;background:color-mix(in srgb,var(--sf-accent-soft) 45%,var(--sf-surface-inset));align-items:center;gap:12px;max-width:none;margin:0}
.decision-sheet .fx-choice__note .bi {margin-top:0;font-size:1rem}
.fx-depth {list-style:none;display:grid;grid-template-columns:1fr;gap:16px;padding:0;margin:0}
@media(min-width:760px){.fx-depth {grid-template-columns:repeat(2,minmax(0,1fr))}}
.fx-depth>li {display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:20px 22px;border-radius:18px;background:color-mix(in srgb,var(--sf-ink) 4.5%,var(--sf-surface-inset))}
.fx-depth>li.is-hi {background:linear-gradient(135deg,var(--sf-accent-soft),transparent 140%),var(--sf-surface-inset);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sf-accent-ink) 28%,transparent)}
.fx-depth__top {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fx-depth__label {font-weight:700;color:var(--sf-ink);font-size:.95rem}
.fx-depth__badge {font-size:.72rem;font-weight:650;letter-spacing:.04em;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--sf-ink) 7%,transparent);color:var(--sf-muted)}
.fx-depth>li.is-hi .fx-depth__badge {background:var(--sf-accent-soft);color:var(--sf-accent-ink)}
.fx-depth__steps {list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;padding:0;margin:0}
.fx-depth__steps>li {position:relative;display:inline-flex;align-items:center;gap:8px;padding:8px 12px 8px 8px;border-radius:999px;background:color-mix(in srgb,var(--sf-ink) 6%,transparent);font-size:.84rem;font-weight:600;color:var(--sf-text)}
.fx-depth>li.is-hi .fx-depth__steps>li {background:var(--sf-accent-soft);color:var(--sf-ink)}
.fx-depth__steps>li+li::before {content:'›';position:absolute;left:-14px;top:50%;transform:translateY(-52%);color:var(--sf-muted);font-weight:700;font-size:1rem; pointer-events:none}
.fx-depth>li.is-hi .fx-depth__steps>li+li::before {color:var(--sf-accent-ink)}
.fx-depth__num {display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:.72rem;font-weight:800;background:var(--fx-c4);color:#0f172a}
html.dark .fx-depth__num {color:#fff}
.fx-depth>li.is-hi .fx-depth__num {background:var(--fx-c0);color:#fff}
html.dark .fx-depth>li.is-hi .fx-depth__num {color:#0a0c11}
.task-chart table {border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;color:var(--sf-text)}
.task-chart th,.task-chart td {padding:14px 8px;text-align:right}
.task-chart th:first-child {text-align:left;width:32%;padding-left:0}
.task-chart thead tr {border-bottom:1px solid var(--sf-line-strong)}
.task-chart thead th {font-size:.74rem;color:var(--sf-muted);font-weight:600}
.task-chart tbody tr+tr {border-top:1px solid var(--sf-line)}
.task-chart tbody th {font-size:.94rem;font-weight:550}
.task-chart .plot {width:46%;padding-inline:20px;text-align:center}
.task-chart tr>:last-child {color:var(--sf-accent-ink);font-weight:700}
.task-chart tfoot {border-top:2px solid var(--sf-line-strong);font-weight:650}
.task-track {height:6px;position:relative;border-radius:999px;background:color-mix(in srgb,var(--sf-ink) 13%,transparent)}
.task-track i {position:absolute;left:var(--left);width:var(--span);height:100%;background:var(--sf-accent-ink);border-radius:inherit;transform-origin:left}
.task-track::before,.task-track::after {content:'';position:absolute;top:50%;left:var(--at);transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%;background:var(--sf-solid);box-shadow:0 0 0 2px var(--sf-muted);z-index:1}
.task-track::after {left:var(--to);background:var(--sf-accent-ink);box-shadow:none;width:13px;height:13px}
.sf-walkthrough .sf-tab {display:inline-flex;gap:8px;align-items:center;text-align:start}
.walk-index {font-variant-numeric:tabular-nums;color:var(--sf-text);font-size:.72rem}
.sf-walkthrough .sf-tab[aria-selected=true] .walk-index {color:var(--sf-accent-ink);opacity:1}
.nav-specimen {max-width:34rem;margin:0 auto;padding:20px;border-radius:22px;background:var(--sf-surface);box-shadow:var(--sf-surface-shadow)}
.nav-specimen__legend {display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:8px}
.nav-specimen__legend b {text-transform:none;letter-spacing:0}
.nav-specimen ul {padding:16px 4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--sf-solid);border-radius:16px;list-style:none}
.nav-specimen li {display:grid;align-content:start;justify-items:center;gap:6px;font-size:.84rem;text-align:center;overflow-wrap:anywhere}
.nav-specimen .bi {color:var(--sf-accent-ink);font-size:1.35rem}
.sf-tabs:has(.nav-specimen) {max-width:34rem;margin-inline:auto}
.sf-tabs:has(.nav-specimen)>.sf-tabs__list {justify-self:center;margin-inline:auto}
.sf-tabs:has(.nav-specimen)+p {text-align:center;max-width:34rem;margin-inline:auto}
.sf-figure:has(.sf-mock-stage)>figcaption {text-align:center;margin-inline:auto;max-width:62ch}
.sf-sun__screens {max-width:740px;margin-inline:auto;width:100%}
.method-slip {padding:24px;border-radius:20px;background:linear-gradient(135deg,var(--sf-accent-soft),var(--sf-surface-inset));display:grid;gap:14px}
.method-summary {display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;line-height:1.2}
.method-summary strong {font-size:2rem;color:var(--sf-ink);letter-spacing:-.05em}
.method-summary span {font-weight:600;color:var(--sf-accent-ink)}
.method-demo .sf-radio-row label {border-color:transparent;background:var(--sf-surface-inset)}
.method-demo .sf-radio-row label:has(input:checked) {color:var(--sf-accent-ink);background:var(--sf-accent-soft);box-shadow:inset 0 0 0 1px currentColor}
@keyframes ink-draw {from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes ink-settle {from{transform:translateY(5px) scale(.91);opacity:.4}65%{transform:translateY(-1px) scale(1.015)}to{transform:none;opacity:1}}
@keyframes plot-span {from{transform:scaleX(0)}}
@media(prefers-reduced-motion:no-preference){
.sf-scene.is-visible .ink-trace {stroke-dasharray:1;animation:ink-draw .85s cubic-bezier(.22,.78,.17,1) var(--scene-delay,0ms) backwards}
.sf-scene.is-visible .ink-front,.sf-step-symbol.is-visible .bi {transform-origin:center;transform-box:fill-box;animation:ink-settle .78s var(--sf-liquid-ease) var(--scene-delay,0ms) backwards}
.task-chart.is-visible .task-track i {animation:plot-span .85s var(--sf-liquid-ease) var(--lag) backwards}
.decision-sheet.is-visible .decision-options .is-picked {animation:ink-settle .65s var(--sf-liquid-ease) .1s backwards}
}
@media(max-width:760px){.decision-sheet {grid-template-columns:1fr}.decision-lead:has(svg) {grid-template-columns:minmax(0,1fr) 80px}.decision-lead .sf-ink {grid-column:2;grid-row:1 / 3;width:80px;height:58px;margin:0}.decision-lead h3 {max-width:none}.decision-sheet .fx-choice__scale {gap:12px}}
@media(max-width:560px){.task-chart .plot{display:none}.task-chart th:first-child{width:60%}.decision-options{grid-template-columns:1fr}.decision-options li{grid-template-columns:5.5rem 1fr;gap:3px 8px}.decision-options small{grid-column:2}.decision-status{align-self:center}.decision-sheet .fx-choice__scale{grid-template-columns:1fr}.nav-specimen{padding:12px}.nav-specimen li{font-size:.74rem}.method-slip{padding:18px}}
.rail-comparison>.fx-figure {padding:clamp(18px,2.5vw,32px);border-radius:24px;background:var(--sf-surface)}
.rail-comparison>.fx-figure:last-child {background:linear-gradient(135deg,var(--sf-accent-soft),transparent 130%),var(--sf-surface)}
.rail-comparison .fx-head {margin:0 0 12px}
.rail-comparison .sf-journey {gap:0}
.rail-comparison .sf-journey__step {padding:12px 0;background:transparent;box-shadow:none;border-radius:0;align-items:center}
.rail-comparison .sf-journey__step+.sf-journey__step {border-top:1px solid color-mix(in srgb,var(--sf-ink) 7%,transparent)}
.rail-comparison .sf-journey__visual .sf-ink {width:94px;height:66px}
.sf-walkthrough>.sf-tabs>.sf-tabs__list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));width:100%;border-radius:999px;padding:5px;gap:4px}
.sf-walkthrough .sf-tabs__list :is(.sf-liquid-lens,.sf-tab) {border-radius:999px}
.sf-walkthrough .sf-tab {white-space:normal;line-height:1.35;justify-content:flex-start;padding:12px}
.sf-walkthrough .walk-index {align-self:flex-start;line-height:1.8}
@media(max-width:560px){.sf-walkthrough>.sf-tabs>.sf-tabs__list{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-walkthrough .sf-tab{padding:8px;gap:5px}}

/* Four narrative chapters. Keep stable section anchors within each chapter. */
.case-chapter {margin:0;padding-block:var(--sf-space-section) 0;scroll-margin-top:100px}
.chapter-opener+.sf-section {margin:0;padding-block:var(--sf-space-section) 0}
.decision-lead p {color:var(--sf-text);font-size:.92rem;line-height:1.6;max-width:62ch;grid-column:1/-1}
/* Draw the change on interaction. The complete drawing remains legible at rest. */
.action-art {display:block;overflow:visible;color:var(--sf-accent-ink)}
.action-art .ink-base {stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;fill:none}
.action-art .action-ground {fill:currentColor;opacity:.08}
.action-art .action-paper {fill:var(--sf-solid)}
.action-art .action-wash {fill:var(--sf-accent-soft)}
.action-art text {font:700 9px system-ui,sans-serif;text-anchor:middle;fill:currentColor;stroke:none}
.action-art .action-detail {color:var(--sf-accent-ink);transform-box:fill-box;transform-origin:center}
.sf-problem-map__symbol:has(.action-art){width:100px;height:68px;background:none;border-radius:0;margin:0 0 12px -5px}
.sf-problem-map__symbol .action-art {width:100%;height:100%}
@keyframes action-reveal {0%{transform:translateY(3px) scale(.93);opacity:.46}65%{transform:translateY(-.6px) scale(1.015)}100%{transform:none;opacity:1}}
@keyframes action-trace {from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes action-detail-slide {from{transform:translateX(-5px)}to{transform:none}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 :is(.decision-sheet,.sf-journey__step,.sf-feature-diagram li,.sf-problem-map__node,.sf-cover-diagram li,.sf-move):hover .action-detail {animation:action-reveal .62s cubic-bezier(.2,.8,.25,1) both}
 :is(.decision-sheet,.sf-journey__step,.sf-feature-diagram li,.sf-problem-map__node,.sf-cover-diagram li):hover .action-trace {stroke-dasharray:1;animation:action-trace .78s cubic-bezier(.3,.8,.3,1) both}
 :is(.decision-sheet,.sf-feature-diagram li,.sf-journey__step):hover :is([data-drawing=swipe],[data-drawing=link],[data-drawing=receiptLink],[data-drawing=exchange]) .action-detail {animation:action-detail-slide .65s var(--sf-liquid-ease)}
 .sf-project-art:hover .art-signal,.ui-route-map:hover .map-route {stroke-dasharray:1;animation:action-trace .9s ease-out}
}
.cover-action {display:block;flex:0 0 clamp(64px,8vw,96px)}
.cover-action .action-art {width:100%;height:auto}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 :is(.decision-sheet,.sf-journey__step,.sf-feature-diagram li,.sf-problem-map__node,.sf-cover-diagram li):hover .action-art:not(:has(.action-detail,.action-trace)) .ink-base {transform-box:fill-box;transform-origin:center;animation:action-reveal .6s ease-out}
 [data-drawing=range] .action-detail circle {transform-box:fill-box;transform-origin:center}
 :is(.decision-sheet,.sf-journey__step,.sf-feature-diagram li):hover [data-drawing=range] .action-detail circle {animation:fare-band .95s cubic-bezier(.3,.7,.3,1) both}
}
@keyframes fare-band {0%{transform:translateX(-10px)}65%{transform:translateX(9px)}100%{transform:translateX(0)}}

/* Let the page show through transparent edges of product screenshots. */
.sf-cs .sf-figure__frame,
.sf-cs .sf-figure__frame > :is(img, video),
.sf-cs .sf-walkthrough__media,
.sf-cs .sf-project-cover,
.sf-cs .sf-compare {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* One vertical rhythm; chapter boundaries do not stack with section padding. */
.sf-section { padding-block:var(--sf-space-section); }
.sf-section + .sf-section { padding-top:0; }
.sf-section__head { margin-bottom:var(--sf-space-content); }
.sf-block,.sf-problem-map+.fx-facts,.sf-section>figure+.fx-facts { margin-top:var(--sf-space-content); }
.case-chapter { margin-block:var(--sf-space-section); scroll-margin-top:100px; }
.case-chapter > .sf-section { margin:0; padding-block:var(--sf-space-section) 0; }
.case-chapter > .sf-section + .sf-section { padding-top:var(--sf-space-section); }
.chapter-opener + .sf-section { margin-top:0; padding-top:var(--sf-space-section); }
.sf-stack > * + * { margin-top:var(--sf-gap, var(--sf-space-content)); }
.sf-stack-sm { --sf-gap:var(--sf-space-2); }
.sf-stack-md { --sf-gap:var(--sf-space-content); }
.sf-stack-lg { --sf-gap:var(--sf-space-4); }
.sf-stack-xl { --sf-gap:var(--sf-space-section); }
.sf-gap-sm { gap:var(--sf-space-2); }
.sf-gap-md { gap:var(--sf-space-content); }
.sf-gap-lg { gap:var(--sf-space-4); }
.sf-mt-sm { margin-block:var(--sf-space-2) 0; }
.sf-mt-md { margin-block:var(--sf-space-content) 0; }
.sf-mt-lg { margin-block:var(--sf-space-4) 0; }
.sf-mt-section { margin-block:var(--sf-space-section) 0; }
.sf-pt-section { padding-block:var(--sf-space-section) 0; }
.sf-py-section { padding-block:var(--sf-space-section); }
.sf-walkthrough__panel { gap:var(--sf-space-content); }
.sf-walkthrough__panel:has(.is-phone) { grid-template-columns:minmax(0,1fr) minmax(240px,.85fr); }
.sf-walkthrough__panel p { max-width:52ch; line-height:1.65; }
.sf-walkthrough__media.is-phone { justify-self:center; width:100%; max-width:320px; padding:0; }
@media(max-width:760px) {
 :root { --sf-space-section:32px; --sf-space-content:20px; }
 .sf-walkthrough__panel:has(.is-phone) { grid-template-columns:minmax(0,1fr); }
}

/* Pickup decisions read as one comparison instead of three stretched rows. */
.pickup-decisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.pickup-decisions > .decision-sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  margin: 0;
  min-width: 0;
}
.pickup-decisions .decision-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.pickup-decisions .decision-lead h3 {
  font-size: 1.2rem;
  max-width: none;
}
.pickup-decisions .decision-lead .sf-ink {
  width: 88px;
  height: 60px;
  margin: -4px 0 2px -8px;
}
.pickup-decisions .fx-choice__body {
  display: block;
}
.pickup-decisions .fx-choice__scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.pickup-decisions .fx-choice__side {
  padding: 14px 16px;
  gap: 6px;
}
@media (max-width: 1000px) {
  .pickup-decisions { grid-template-columns: minmax(0, 1fr); }
  .pickup-decisions .fx-choice__scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pickup-decisions > .decision-sheet { padding: 20px; }
  .pickup-decisions .fx-choice__scale { grid-template-columns: minmax(0, 1fr); }
}

/* Two decisions sit beside each other. Below this width they return to the full-width sheet. */
.decision-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sf-space-content, 20px);
  align-items: stretch;
}
.decision-pair > .decision-sheet { margin: 0; }
@media (min-width: 981px) {
  .decision-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-pair > .decision-sheet {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    height: 100%;
  }
  .decision-pair .decision-lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .decision-pair .decision-lead h3 { font-size: 1.2rem; max-width: none; }
  .decision-pair .decision-lead p { max-width: none; }
  .decision-pair .decision-lead .sf-ink { width: 88px; height: 60px; margin: -4px 0 2px -8px; }
  .decision-pair .fx-choice__body { flex: 1; }
  .decision-pair .fx-choice__scale { margin-top: auto; }
}

/* Place the design beside its decision, with the full walkthrough one click away. */
.sf-preview-stage {
  display:grid;
  place-items:center;
  min-width:0;
  overflow:hidden;
  padding:clamp(16px,2.6vw,38px);
  border-radius:18px;
  background:radial-gradient(ellipse at top left, color-mix(in srgb,var(--sf-accent) 17%,#faf9f6), #f1f2f4 85%);
}
.sf-preview-stage img {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  filter:drop-shadow(0 5px 8px #18223119);
}
.sf-preview-stage :is(object.sf-preview-art, .sf-svg-inline) {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  margin-inline:auto;
  filter:drop-shadow(0 5px 8px #18223119);
  pointer-events:none;
  background:transparent;
  aspect-ratio:385 / 238;
}
.sf-svg-inline svg {
  display:block;
  width:100%;
  height:auto;
  background:transparent;
}
.sf-design-preview { min-width:0; margin:0; }
.sf-design-preview .sf-preview-stage { height:clamp(320px,42vw,560px); padding:clamp(8px,1.2vw,18px); }
.sf-design-preview.sf-design-preview--fit .sf-preview-stage { height:auto; padding:clamp(24px,4vw,48px); border-radius:28px; }
.sf-design-preview--fit .sf-preview-stage :is(object.sf-preview-art, .sf-svg-inline) { width:100%; }
.sf-design-preview .sf-preview-stage > .sf-svg-inline--natural {
  aspect-ratio: auto;
  width: min(100%, 520px);
  height: auto;
  max-height: 100%;
}
.sf-design-preview .sf-preview-stage > .sf-svg-inline--natural > svg { width: 100%; height: auto; }
.sf-design-preview .sf-preview-stage:has(> .sf-svg-inline--portrait) { grid-template-rows: minmax(0, 1fr); }
.sf-design-preview .sf-preview-stage > .sf-svg-inline--portrait {
  aspect-ratio: auto;
  align-self: stretch;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.sf-design-preview .sf-preview-stage > .sf-svg-inline--portrait > svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
/* Photographic previews: let the image bleed to the stage edges instead of floating in a matte. */
.sf-design-preview.sf-design-preview--fill .sf-preview-stage { padding:0; background:#f1ece4; }
.sf-design-preview.sf-design-preview--fill .sf-preview-stage img { object-fit:cover; object-position:center; filter:none; }
.sf-design-preview figcaption {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px 16px;
  padding:12px 2px;
  color:var(--sf-muted);
  font-size:.8rem;
}
.sf-design-preview figcaption a { color:var(--sf-accent-ink); font-weight:600; }
.sf-feature-grid .sf-index__row { padding:16px; gap:14px; margin:0; min-height:0; }
.sf-feature-grid .sf-preview-stage { height:clamp(138px,13vw,200px); padding:12px; border-radius:12px; overflow:hidden; }
.sf-feature-grid .sf-preview-stage :is(img, object.sf-preview-art, .sf-svg-inline) { object-fit:contain; object-position:center; filter:drop-shadow(0 5px 8px #18223119); }
.sf-feature-grid .sf-preview-stage img,
.sf-feature-grid .sf-preview-stage .sf-svg-inline svg { border-radius:8px; }
.sf-feature-grid .sf-index__main,.sf-feature-grid .sf-index__meta { padding-inline:4px; }
.sf-feature-grid .sf-index__meta { padding-bottom:6px; }
.sf-process-gallery { display:grid; grid-template-columns:repeat(var(--panels),minmax(0,1fr)); gap:clamp(18px,2.5vw,36px); }
.sf-process-gallery figure,.sf-process-spread figure { margin:0; min-width:0; }
.sf-cs .sf-process-gallery .sf-figure__frame,.sf-cs .sf-process-spread .sf-figure__frame {
  display:grid;
  place-items:center;
  background:#f6f5f1;
  border-radius:18px;
  padding:clamp(12px,1.6vw,22px);
}
.sf-process-gallery .sf-figure__frame { height:clamp(300px,34vw,460px); }
.sf-process-gallery .sf-figure__frame img,.sf-process-spread .sf-figure__frame img {
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  border-radius:4px;
}
.sf-process-spread .sf-figure__frame :is(object.sf-preview-art, .sf-svg-inline),
.sf-figure__frame :is(object.sf-preview-art, .sf-svg-inline) {
  display:block;
  width:min(100%, 420px);
  height:auto;
  margin-inline:auto;
  max-height:min(650px, 70vh);
  aspect-ratio:385 / 238;
  background:transparent;
  border-radius:4px;
}
.sf-figure__frame .sf-svg-inline svg {
  display:block;
  width:100%;
  height:auto;
  background:transparent;
}
.sf-process-gallery figcaption { text-align:left; margin:0; padding:16px 0 0; }
.sf-process-gallery figcaption strong { display:block; color:var(--sf-ink); font-size:1.05rem; line-height:1.4; }
.sf-process-gallery figcaption span { display:block; margin-top:6px; color:var(--sf-text); font-size:.94rem; line-height:1.6; }
.sf-process-spread { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:clamp(22px,4vw,64px); align-items:center; }
.sf-process-spread .sf-figure__frame { height:clamp(260px,30vw,395px); }
.sf-cs[data-project="pickme"] .sf-figure__frame,
.sf-cs[data-project="pickme"] .sf-process-gallery .sf-figure__frame {
  background:transparent;
}
.sf-cs[data-project="pickme"] #problem .fx-row--problem {
  align-items:center;
  gap:clamp(40px, 6vw, 88px);
}
.sf-cs[data-project="pickme"] #problem .sf-figure__frame {
  padding:12px 16px 64px;
  overflow:visible;
}
.sf-cs[data-project="pickme"] #problem .sf-figure__frame img {
  width:auto;
  max-width:100%;
  max-height:min(560px, 68vh);
  margin-inline:auto;
  display:block;
}
.sf-cs[data-project="pickme"] #problem .sf-zoom {
  right:8px;
  bottom:8px;
}
.sf-cs[data-project="pickme"] #problem .mistap {
  width:min(100%, 300px);
  justify-self:center;
}
.mistap-stage { width:100%; }
.mistap-fit { container-type:inline-size; position:relative; width:100%; aspect-ratio:372 / 587; }
.mistap-canvas {
  position:absolute; top:0; left:0; width:372px; height:587px;
  transform-origin:top left; transform:scale(calc(100cqi / 372px));
  color:#111827; color-scheme:light;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing:antialiased;
}
.mistap p + p { margin-top:0; }
.mistap-phone {
  position:absolute; left:0; top:0; width:270.764px; height:587px;
  background:#000; border-radius:30px; overflow:hidden;
  box-shadow:0 0 0 1px #000;
}
.mistap-phone::before {
  content:""; position:absolute; z-index:0; inset:5px; border-radius:25px; background:#eee;
}
.mistap-nav {
  position:absolute; left:0; top:0; width:270.764px; height:78.542px; z-index:2;
  background:linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)), #ffad00;
}
.mistap-status {
  position:absolute; left:0; right:0; top:0; height:37.2px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 16px 0 24px;
}
.mistap-time { font-size:11.7px; font-weight:650; letter-spacing:.01em; }
.mistap-levels { display:flex; align-items:center; gap:4px; }
.mistap-phone img { display:block; width:auto; height:auto; max-width:none; }
.mistap-battery {
  position:relative; width:17.2px; height:9px; box-sizing:border-box;
  border:.69px solid rgba(17,24,39,.35); border-radius:2.6px;
  display:flex; align-items:center; padding:1.1px;
}
.mistap-battery__fill { width:14.5px; height:6.2px; border-radius:1.7px; background:#111827; }
.mistap-battery img { position:absolute; left:100%; top:50%; margin-left:.4px; transform:translateY(-50%); }
.mistap-menu {
  position:absolute; left:10.3px; top:37.2px; width:30.3px; height:30.3px;
  display:grid; place-items:center; border-radius:5.5px;
}
.mistap-title { position:absolute; left:51px; top:44px; font-size:12px; font-weight:650; line-height:15px; }
.mistap-pickup {
  position:absolute; left:11px; top:91px; width:248px; z-index:2;
  padding:6px 11px; border-radius:5.5px;
  background:rgba(255,255,255,.75);
  box-shadow:0 2.8px 2.8px rgba(0,0,0,.15);
  -webkit-backdrop-filter:blur(17px); backdrop-filter:blur(17px);
}
.mistap-pickup p:first-child { color:#00b209; font-size:9.65px; font-weight:550; line-height:15px; }
.mistap-pickup p:last-child { color:#111827; font-size:11.7px; font-weight:700; line-height:16px; }
.mistap-clock {
  position:absolute; left:37px; top:258px; width:196px; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center;
}
.mistap-clock p:first-child { color:#7f7f7f; font-size:11px; font-weight:510; line-height:16px; white-space:nowrap; }
.mistap-count { color:#111827; font-size:40px; font-weight:700; line-height:48px; }
.mistap-seconds { color:#7f7f7f; font-size:18px; font-weight:600; line-height:21px; }
.mistap-sheet { position:absolute; left:0; top:477px; width:271px; height:110px; background:#fff; z-index:1; }
.mistap-accept, .mistap-decline {
  position:absolute; left:11px; width:248px; height:30px; z-index:2;
  display:flex; align-items:center; justify-content:center;
  color:#111827; font-size:11.7px; font-weight:700; line-height:17.6px; letter-spacing:.01em;
}
.mistap-accept { top:490px; background:#ffc140; }
.mistap-decline { top:528px; background:#cdcdcd; }
.mistap-home {
  position:absolute; left:50%; bottom:8px; z-index:2; width:95.8px; height:3.4px;
  border-radius:69px; background:#111827; transform:translateX(-50%);
}
.mistap-phone .mistap-heat { position:absolute; left:0; top:0; z-index:3; width:270.764px; height:587px; max-width:none; pointer-events:none; }
.mistap-bezel {
  position:absolute; inset:0; z-index:4; border:5px solid #000; border-radius:30px; pointer-events:none;
}
.mistap-note {
  position:absolute; left:145px; top:350px; z-index:5; width:227px;
  display:flex; flex-direction:column; gap:9px;
  padding:16px; border-radius:16px; background:#fff; color:#263040;
  font-family:Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow:0 10px 28px rgba(17,24,39,.16), 0 1px 3px rgba(0,0,0,.12);
}
.mistap-note__title { font-size:10px; font-weight:600; line-height:14px; color:#263040; }
.mistap-note p { font-size:10px; font-weight:400; line-height:14px; color:#263040; }
.mistap-scale__bar {
  display:block; height:5px; border-radius:2.5px;
  background:linear-gradient(90deg, #1aa6bf 0%, #ffc700 50%, #ff1f08 100%);
}
.mistap-scale__labels {
  display:flex; justify-content:space-between; margin-top:4px;
  font-size:8px; line-height:11.2px; color:#263040;
}
.mistap-scale__labels span:last-child { text-align:right; }
.sf-cs #try .sf-figure { display:grid; justify-items:center; gap:16px; }
.sf-cs #try .sf-figure figcaption,
.sf-cs #compare .sf-figure figcaption { text-align:center; margin-inline:auto; }
.sf-cs #compare .sf-figure { align-items:center; }
.trip-motion-stage { display:grid; grid-template-columns:repeat(2, minmax(0, 320px)); justify-content:center; align-items:start; gap:clamp(28px, 4vw, 72px); width:100%; margin:0; padding:0; background:none; box-shadow:none; border-radius:0; }
.trip-motion-phone { display:flex; width:100%; aspect-ratio:719 / 1500; height:auto; color:#111827; }
@media (max-width:760px) { .trip-motion-stage { grid-template-columns:minmax(0, 320px); } }
.trip-motion-phone .ui-screen { position:relative; flex:1; min-height:0; overflow:hidden; background:#0e1218; color:#111827; container-type:inline-size; }
.trip-motion-phone .ui-island { position:absolute; z-index:6; top:11px; left:50%; width:78px; height:22px; border-radius:20px; background:#0b0d12; transform:translateX(-50%); pointer-events:none; }
.trip-motion-phone .ui-home-indicator { position:absolute; z-index:6; left:50%; bottom:8px; width:112px; height:5px; margin:0; border-radius:99px; background:#111; box-shadow:0 0 0 1px rgba(255,255,255,.85); transform:translateX(-50%); pointer-events:none; }
.trip-motion-phone.is-nav .ui-home-indicator { opacity:0; }
.tm-fit { position:absolute; inset:0; overflow:hidden; }
.tm-canvas { position:absolute; top:0; left:0; width:271px; height:587px; transform-origin:top left; transform:scale(calc(100cqi / 271px)); background:#fff; color:#111827; color-scheme:light; font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; -webkit-font-smoothing:antialiased; user-select:none; }
.tm-canvas strong, .tm-canvas b { color:inherit; }
.tm-view { position:absolute; inset:0; background:#fff; overflow:hidden; transform:translate3d(110%, 0, 0); z-index:0; pointer-events:none; }
.tm-view.is-front { z-index:3; pointer-events:auto; transform:translate3d(calc((1 - var(--p, 1)) * 100%), 0, 0); box-shadow:-14px 0 22px rgba(0, 0, 0, calc((1 - var(--p, 1)) * .55)), -1px 0 0 rgba(0, 0, 0, calc((1 - var(--p, 1)) * .22)); }
.tm-view.is-back { z-index:2; transform:translate3d(calc(var(--shift, 1) * -30%), 0, 0) scale(calc(1 - var(--shift, 1) * 0.1)); border-radius:calc(var(--shift, 1) * 32px); }
.tm-view.is-back::after { content:""; position:absolute; inset:0; background:#000; opacity:calc(var(--shift, 1) * .45); pointer-events:none; z-index:7; }
.tm-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
[data-view="request"] { background:#111827; }
[data-view="request"] .tm-bg { top:50.29px; height:calc(100% - 50.29px); border-radius:8.27px 8.27px 0 0; object-position:60% 62%; }
.tm-peek { position:absolute; left:11.02px; top:39.97px; width:248.72px; height:72.15px; border-radius:11.71px; background:rgba(255,255,255,.25); }
.tm-badge { position:absolute; z-index:2; left:5px; top:272px; width:44px; height:44px; border-radius:5.5px; object-fit:cover; box-shadow:0 0 10.4px rgba(0,0,0,.25); }
.tm-status { position:absolute; z-index:3; top:0; left:0; right:0; display:flex; align-items:flex-start; justify-content:space-between; height:37px; padding:13px 16px 0 34px; font-size:11.7px; font-weight:650; letter-spacing:.01em; color:#111827; }
[data-view="request"] .tm-status { background:#111827; color:#fff; }
.tm-status__icons { display:flex; align-items:center; gap:5px; }
.tm-status__icons svg { width:16px; height:11px; display:block; }
.tm-sq { position:absolute; z-index:3; top:37px; width:30px; height:30px; border-radius:5.5px; background:#fff; box-shadow:0 1.4px 2.8px rgba(0,0,0,.12); display:grid; place-items:center; }
.tm-sq--menu { left:11px; }
.tm-sq--alert { left:229px; background:#fde8e6; box-shadow:none; }
.tm-sq img, .tm-sq svg { width:16px; height:16px; display:block; }
.tm-pill { position:absolute; z-index:3; left:77px; top:37px; width:116px; height:30px; padding:0 11px 0 5px; border-radius:19px; background:#005744; color:#fff; display:flex; align-items:center; gap:5.5px; font-size:11.7px; font-weight:700; letter-spacing:-.01em; }
.tm-pill__track { position:relative; width:35px; height:21px; border-radius:999px; background:#28af49; flex:none; }
.tm-pill__knob { position:absolute; top:1.4px; right:1.4px; width:18.6px; height:18.6px; border-radius:50%; background:#fff; box-shadow:0 2px 5.5px rgba(0,0,0,.15), 0 2px .7px rgba(0,0,0,.06); }
.tm-sheet { position:absolute; z-index:2; top:50.29px; left:0; right:0; height:39.96px; padding-top:9.65px; box-sizing:border-box; border-radius:6.89px 6.89px 0 0; background:#fff; display:grid; place-items:center; font-size:11.71px; font-weight:700; line-height:17.57px; }
.tm-grabber { position:absolute; top:3.45px; left:50%; width:24.8px; height:3.44px; border-radius:1.72px; background:rgba(0,0,0,.25); transform:translateX(-50%); }
.tm-drop { position:absolute; z-index:2; left:11px; top:97px; width:202px; height:60px; padding:6px 11px; border-radius:5.5px; background:rgba(255,255,255,.75); backdrop-filter:blur(10px); box-shadow:0 2.8px 2.8px rgba(0,0,0,.15); }
.tm-drop small, .tm-stop small { display:block; color:#4d4f4f; font-size:9.6px; font-weight:510; line-height:1.35; }
.tm-drop b { display:block; margin-top:1px; font-size:11.7px; font-weight:700; line-height:1.25; }
.tm-reject { position:absolute; z-index:2; left:218px; top:97px; width:42px; height:60px; border:0; border-radius:5.5px; background:#a6251c; color:#fff; box-shadow:0 2.8px 2.8px rgba(0,0,0,.15); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:9.6px; font-weight:510; cursor:pointer; }
.tm-reject img { width:14px; height:14px; }
.tm-reject.is-shake { animation:tm-shake .36s ease; }
.tm-route { position:absolute; z-index:1; left:65px; top:179px; width:176px; height:178px; pointer-events:none; }
.tm-route > img:first-child { position:absolute; left:24px; top:18px; width:125px; height:131px; }
.tm-pin { position:absolute; right:28px; top:22px; width:10px; height:18px; }
.tm-puck { position:absolute; left:28px; top:128px; width:32px; height:32px; border-radius:50%; background:#fff; box-shadow:0 0 5.5px rgba(0,0,0,.25); display:grid; place-items:center; }
.tm-puck img { width:9px; height:10px; }
.tm-fare { position:absolute; z-index:2; left:11.02px; top:358px; width:248.72px; height:182px; box-sizing:border-box; padding:16.54px; border-radius:11.02px; background:#005744; color:#fefdfd; text-align:center; display:flex; flex-direction:column; align-items:center; }
.tm-count { display:block; flex:none; width:215.65px; height:3.44px; margin-bottom:16.54px; border-radius:13.78px; background:#003c2f; overflow:hidden; }
.tm-count i { display:block; height:100%; width:100%; border-radius:inherit; background:#fefdfd; transform-origin:left center; animation:tm-count 20s linear infinite; }
.tm-fare small { font-size:11.71px; font-weight:400; line-height:17.57px; }
.tm-fare strong { margin-top:4.13px; font-size:22.05px; font-weight:700; line-height:28.25px; }
.tm-fare em { margin-top:4.13px; font-style:normal; color:#aaffb2; font-size:11.71px; font-weight:700; line-height:17.57px; }
.tm-chev { flex:none; margin-top:auto; width:15.85px; height:14.47px; animation:tm-bob 2s linear infinite; }
.tm-chev svg { display:block; width:100%; height:100%; overflow:visible; }
.tm-hint { flex:none; margin-top:6px; color:rgba(254,253,253,.82); font-size:10.5px; font-weight:600; line-height:14px; letter-spacing:.01em; }
.tm-avatar { position:absolute; left:108px; top:95px; width:55px; height:55px; border-radius:50%; background:#f4ce9b; object-fit:cover; object-position:center 18%; }
.tm-name { position:absolute; top:164px; left:0; right:0; text-align:center; font-size:11.7px; font-weight:700; }
.tm-score { position:absolute; top:185px; left:50%; transform:translateX(-50%); height:16px; padding:0 5.5px; border-radius:14px; background:#fff; box-shadow:0 1.4px 2.8px rgba(0,0,0,.05); display:inline-flex; align-items:center; gap:1.4px; color:#4d4f4f; font-size:9.6px; font-weight:510; }
.tm-score img { width:11px; height:11px; }
.tm-actions { position:absolute; left:11px; top:214.5px; width:249px; display:grid; grid-template-columns:1fr 1fr; gap:11.7px; }
.tm-chip { height:30px; border-radius:5.5px; border:1px solid #e1e0e0; background:#fff; display:flex; align-items:center; justify-content:center; gap:5.5px; font-size:11.7px; font-weight:700; }
.tm-chip img { width:16px; height:16px; }
.tm-chip--call { background:#c7e2ff; border-color:transparent; }
.tm-trip { position:absolute; left:11px; top:260px; width:249px; border-radius:11px; background:#fff; box-shadow:0 2.8px 4.1px rgba(0,0,0,.25); overflow:hidden; }
.tm-stop { display:flex; gap:7.6px; align-items:flex-start; padding:0 11px; }
.tm-stop:first-child { padding-top:16.5px; }
.tm-stop + .tm-stop { margin-top:16.5px; }
/* The later stop reads as secondary through a grey address, not a 50% fade (which fell to 2.4:1). */
.tm-stop--later b { color:#4d4f4f; }
.tm-stop img { width:11px; height:11px; margin-top:2px; flex:none; }
.tm-stop b { display:block; font-size:11.7px; font-weight:700; line-height:1.3; }
.tm-goto { margin-top:22px; height:46px; background:#111827; color:#fff; display:flex; align-items:center; justify-content:center; gap:5.5px; font-size:11.7px; font-weight:700; box-shadow:0 1.4px 2.8px rgba(0,0,0,.25); }
.tm-goto img { width:16px; height:16px; }
.tm-tip { position:absolute; left:11px; top:478.5px; width:max-content; margin:0; padding:2.8px 11px; border-radius:2.8px; background:rgba(17,24,39,.22); color:#111827; font-size:9.6px; font-weight:510; text-align:center; line-height:1.35; white-space:nowrap; }
.tm-tip::after { content:""; position:absolute; left:16px; bottom:-5px; border:5px solid transparent; border-top-color:rgba(17,24,39,.22); border-bottom:0; }
.tm-slider { position:absolute; left:11px; top:510px; width:249px; height:41px; border-radius:5.5px; background:#ffc23f; touch-action:none; }
.tm-slider__knob { position:absolute; top:4px; left:5.5px; width:33px; height:33px; border-radius:5.5px; background:#fff; box-shadow:0 5.5px 20.7px rgba(1,1,20,.35); display:grid; place-items:center; transform:translate3d(var(--x, 0px), 0, 0) scale(var(--s, 1)); cursor:grab; }
.tm-slider.is-drag { --s:1.06; }
.tm-slider.is-drag .tm-slider__knob { cursor:grabbing; }
.tm-slider__knob svg { width:16px; height:11px; }
.tm-slider__label { position:absolute; inset:0 8px 0 44px; display:grid; place-items:center; color:#111827; font-size:11.7px; font-weight:700; pointer-events:none; opacity:calc(1 - var(--drag, 0)); }
@keyframes tm-bob {
	0%, 12.5% { transform:translateY(0); opacity:1; animation-timing-function:ease-out; }
	27.5% { opacity:1; animation-timing-function:ease-in-out; }
	47.5% { transform:translateY(-10px); animation-timing-function:ease-in-out; }
	52.5% { opacity:0; }
	55% { transform:translateY(-12px); opacity:0; }
	55.5% { transform:translateY(4px); opacity:0; animation-timing-function:ease-out; }
	82.5%, 100% { transform:translateY(0); opacity:1; }
}
.tm-slider--demo .tm-slider__knob { animation:tm-halfdrag 3.6s infinite; }
.tm-slider--demo .tm-slider__label { animation:tm-halflabel 3.6s infinite; }
@keyframes tm-halfdrag {
	0%, 18% { transform:translate3d(0, 0, 0) scale(1); animation-timing-function:cubic-bezier(.3, 0, .2, 1); }
	22% { transform:translate3d(0, 0, 0) scale(1.06); animation-timing-function:cubic-bezier(.3, 0, .2, 1); }
	44% { transform:translate3d(96px, 0, 0) scale(1.06); }
	52% { transform:translate3d(96px, 0, 0) scale(1.06); animation-timing-function:cubic-bezier(.2, .9, .25, 1.15); }
	66% { transform:translate3d(-4px, 0, 0) scale(1); animation-timing-function:ease-out; }
	72%, 100% { transform:translate3d(0, 0, 0) scale(1); }
}
@keyframes tm-halflabel {
	0%, 22% { opacity:1; }
	44%, 52% { opacity:.75; } /* .75 keeps #111827 on #ffc23f above 5:1 */
	66%, 100% { opacity:1; }
}
@keyframes tm-count { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@keyframes tm-shake {
	0%, 100% { transform:translateX(0); }
	25% { transform:translateX(-3px); }
	50% { transform:translateX(3px); }
	75% { transform:translateX(-2px); }
}
@media (prefers-reduced-motion:reduce) {
	.tm-chev, .tm-reject.is-shake, .tm-count i, .tm-slider--demo .tm-slider__knob, .tm-slider--demo .tm-slider__label { animation:none; }
}

/* Sunlight demo phones: an iPhone 17 Pro front view. Apple's 71.9 × 150 mm case and 402 × 874 pt display are drawn
   at the Figma screens' 271px width (1 mm = 4.07px). The case corner is an Apple-style continuous curve fitted to the
   Pro corner profile; the glass and display outlines are exact inward offsets of it, so all three stay concentric
   (display corner ≈ 62.7 pt). The rim width and button positions are approximations from the Pro drawings. */
.sf-sun__screen:has(> .sun-ph) { width:min(100%, 316px); border-radius:0; overflow:visible; }
.sf-sun__screen:has(> .sun-ph)::after { content:none; }
.sun-ph {
	--sun-case:path("M0 81.15C0 57.78 0 46.1 3.98 33.52C8.99 19.79 19.79 8.99 33.52 3.98C46.1 0 57.78 0 81.15 0L211.55 0C234.92 0 246.6 0 259.18 3.98C272.91 8.99 283.71 19.79 288.72 33.52C292.7 46.1 292.7 57.78 292.7 81.15L292.7 529.49C292.7 552.86 292.7 564.54 288.72 577.11C283.71 590.85 272.91 601.65 259.18 606.66C246.6 610.64 234.92 610.64 211.55 610.64L81.15 610.64C57.78 610.64 46.1 610.64 33.52 606.66C19.79 601.65 8.99 590.85 3.98 577.11C0 564.54 0 552.86 0 529.49Z");
	--sun-glass:path("M0 76.26C0.01 71.86 0.03 67.47 0.04 63.07C0.11 58.67 0.08 54.26 0.41 49.89C0.74 45.51 1.04 41.02 2.01 36.8C2.98 32.59 4.22 28.4 6.23 24.6C8.24 20.81 10.99 17.11 14.05 14.04C17.12 10.98 20.82 8.23 24.62 6.22C28.41 4.22 32.59 2.98 36.8 2.01C41.01 1.04 45.51 0.74 49.89 0.41C54.26 0.08 58.67 0.11 63.07 0.04C67.47 0.03 71.86 0.01 76.26 0L206.67 0C211.06 0.01 215.46 0.03 219.86 0.04C224.25 0.11 228.66 0.08 233.04 0.41C237.42 0.74 241.91 1.04 246.13 2.01C250.34 2.98 254.53 4.22 258.32 6.23C262.12 8.24 265.82 10.99 268.88 14.05C271.95 17.12 274.7 20.82 276.71 24.62C278.71 28.41 279.95 32.59 280.92 36.8C281.89 41.01 282.19 45.51 282.51 49.89C282.84 54.26 282.82 58.67 282.89 63.07C282.96 67.47 282.92 71.86 282.93 76.26L282.93 524.6C282.92 529 282.96 533.4 282.89 537.8C282.82 542.19 282.84 546.6 282.51 550.98C282.19 555.36 281.89 559.85 280.92 564.06C279.95 568.28 278.71 572.47 276.7 576.26C274.69 580.05 271.94 583.76 268.87 586.82C265.81 589.88 262.1 592.64 258.31 594.64C254.52 596.65 250.34 597.89 246.13 598.86C241.91 599.83 237.42 600.12 233.04 600.45C228.66 600.78 224.25 600.76 219.86 600.83C215.46 600.9 211.06 600.86 206.67 600.87L76.26 600.87C71.86 600.86 67.47 600.9 63.07 600.83C58.67 600.76 54.26 600.78 49.89 600.45C45.51 600.12 41.02 599.83 36.8 598.86C32.59 597.89 28.4 596.64 24.6 594.64C20.81 592.63 17.11 589.88 14.04 586.81C10.98 583.75 8.23 580.04 6.22 576.25C4.22 572.46 2.98 568.27 2.01 564.06C1.04 559.85 0.74 555.36 0.41 550.98C0.08 546.6 0.11 542.19 0.04 537.8C0.03 533.4 0.01 529 0 524.6Z");
	--sun-disp:path("M0 70.36C0 66.23 0.03 62.11 0.03 57.99C0.08 53.86 0.06 49.73 0.33 45.62C0.6 41.51 0.85 37.21 1.65 33.33C2.44 29.44 3.33 25.81 5.11 22.3C6.89 18.8 9.45 15.19 12.32 12.32C15.19 9.45 18.81 6.88 22.31 5.11C25.81 3.33 29.44 2.44 33.33 1.65C37.21 0.85 41.51 0.6 45.62 0.33C49.73 0.06 53.86 0.08 57.99 0.03C62.11 0.03 66.23 0 70.36 0L200.64 0C204.77 0 208.89 0.03 213.01 0.03C217.14 0.08 221.27 0.06 225.38 0.33C229.49 0.6 233.79 0.85 237.67 1.65C241.56 2.44 245.19 3.33 248.7 5.11C252.2 6.89 255.81 9.45 258.68 12.32C261.55 15.19 264.12 18.81 265.89 22.31C267.67 25.81 268.56 29.44 269.35 33.33C270.15 37.21 270.4 41.51 270.67 45.62C270.94 49.73 270.92 53.86 270.97 57.99C271.03 62.11 271 66.23 271 70.36L271 518.82C271 522.95 271.03 527.07 270.97 531.2C270.92 535.32 270.94 539.45 270.67 543.56C270.4 547.67 270.15 551.97 269.35 555.85C268.56 559.74 267.67 563.38 265.89 566.88C264.11 570.38 261.55 574 258.68 576.86C255.81 579.73 252.19 582.3 248.69 584.08C245.19 585.86 241.56 586.74 237.67 587.54C233.79 588.33 229.49 588.58 225.38 588.85C221.27 589.12 217.14 589.1 213.01 589.15C208.89 589.21 204.77 589.18 200.64 589.18L70.36 589.18C66.23 589.18 62.11 589.21 57.99 589.15C53.86 589.1 49.73 589.12 45.62 588.85C41.51 588.58 37.21 588.33 33.33 587.54C29.44 586.74 25.81 585.85 22.3 584.08C18.8 582.3 15.19 579.73 12.32 576.86C9.45 573.99 6.88 570.38 5.11 566.87C3.33 563.37 2.44 559.74 1.65 555.85C0.85 551.97 0.6 547.67 0.33 543.56C0.06 539.45 0.08 535.32 0.03 531.2C0.03 527.07 0 522.95 0 518.82Z");
	position:relative; width:100%; aspect-ratio:296.36 / 610.64; container-type:inline-size;
}
.sun-ph__canvas {
	position:absolute; left:0; top:0; width:296.36px; height:610.64px;
	transform-origin:0 0; transform:scale(calc(100cqi / 296.36px));
	color:#111827; color-scheme:light; text-align:left; letter-spacing:0; line-height:normal;
	font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
	-webkit-font-smoothing:antialiased; user-select:none;
}
.sun-ph__canvas :is(p, small, b, strong, em) { margin:0; padding:0; }
.sun-ph__canvas :is(b, strong) { color:inherit; }
.sun-ph__canvas img, .sun-ph__canvas svg { display:block; max-width:none; }
.sun-ph__canvas > i { position:absolute; display:block; }

/* Hardware: buttons sit behind the case; one drop shadow for the whole body. */
.sun-ph__body { position:absolute; inset:0; filter:drop-shadow(0 10px 18px rgba(0, 0, 0, .22)); }
.sun-ph__body > i { position:absolute; display:block; }
.sun-ph__btn { width:2.83px; border-radius:1px; background:linear-gradient(90deg, #8e939a, #d9dce0 50%, #a4a8af); }
.sun-ph__btn--l { left:0; }
.sun-ph__btn--r { right:0; }
.sun-ph__btn--action { top:125.51px; height:28.09px; }
.sun-ph__btn--up { top:174.36px; height:45.59px; }
.sun-ph__btn--down { top:232.16px; height:45.59px; }
.sun-ph__btn--side { top:190.03px; height:72.05px; }
.sun-ph__case {
	left:1.83px; top:0; width:292.7px; height:610.64px; border-radius:53px;
	background:linear-gradient(155deg, #eef0f2 0%, #c4c8cd 28%, #9ca1a8 52%, #cfd2d6 76%, #a7abb2 100%);
}
.sun-ph__glass, .sun-ph__glare { left:6.72px; top:4.89px; width:282.93px; height:600.87px; border-radius:48px; }
.sun-ph__glass { background:#050506; }
.sun-ph__screen { position:absolute; left:12.68px; top:10.73px; width:271px; height:589.18px; border-radius:42px; overflow:hidden; isolation:isolate; }
@supports (clip-path:path("M0 0H1V1Z")) {
	.sun-ph__case { border-radius:0; clip-path:var(--sun-case); }
	.sun-ph__glass, .sun-ph__glare { border-radius:0; clip-path:var(--sun-glass); }
	.sun-ph__screen { border-radius:0; clip-path:var(--sun-disp); }
}
.sun-ph__island { left:105.97px; top:20.23px; width:84.43px; height:24.71px; border-radius:12.36px; background:#000; }
/* Glare lies on the front glass (screen, border and island), driven by the slider's --glare. */
.sun-ph__glare {
	--sun-g:var(--glare, 0);
	pointer-events:none;
	background:radial-gradient(120% 90% at 70% 0%, rgba(255, 255, 255, calc(var(--sun-g) * .95)), rgba(255, 255, 255, calc(var(--sun-g) * .7)) 60%, rgba(255, 250, 235, calc(var(--sun-g) * .55)));
}
/* The original fades 1.5× faster. Modelling glare as added light, its weakest text (the green Pickup location label,
   2.8:1) drops to 1.5:1 with about a third less glare than the redesign's weakest (the cash fare, 7.2:1). */
.sun-ph--original .sun-ph__glare { --sun-g:min(1, calc(var(--glare, 0) * 1.5)); }
/* The display is 589.18px tall (Figma: 587px), so bottom-anchored parts keep Figma's distance from the bottom edge. */
.sun-ph__home { position:absolute; z-index:6; left:86.85px; bottom:6.4px; width:95.8px; height:3.4px; border-radius:69px; background:#111827; }

.sun-sb { position:absolute; z-index:5; left:0; top:.86px; width:271px; height:37px; color:#111827; }
.sun-sb--light { color:#fff; }
.sun-sb > * { position:absolute; }
.sun-sb__time { left:34.7px; top:14px; font-size:11.5px; font-weight:590; line-height:14px; letter-spacing:.01em; }
.sun-sb__cell { left:193.6px; top:16.6px; width:13.23px; height:8.42px; }
.sun-sb__wifi { left:212.1px; top:16.55px; width:11.81px; height:8.49px; }
.sun-sb__batt { left:229.1px; top:16.6px; width:17px; height:8.35px; box-sizing:border-box; padding:.69px; border:.69px solid color-mix(in srgb, currentColor 35%, transparent); border-radius:2.6px; }
.sun-sb__batt::after { content:""; display:block; height:100%; border-radius:1.4px; background:currentColor; }
.sun-sb__cap { left:246.55px; top:19.8px; width:.915px; height:2.81px; opacity:.4; }

/* Figma 1 · the original trip request */
.sun-old { background:#efefef; }
.sun-old__nav { position:absolute; left:0; top:0; width:271px; height:78.54px; background:#fec140; }
.sun-old__menu { position:absolute; left:17.6px; top:44.1px; width:16.54px; height:16.54px; }
.sun-old__title { position:absolute; left:51px; top:44px; color:#000; font-size:12px; font-weight:590; line-height:15px; }
.sun-old__pickup { position:absolute; left:11px; top:91px; width:248px; box-sizing:border-box; padding:6px 11px; border-radius:5.5px; background:rgba(255, 255, 255, .75); box-shadow:0 2.8px 2.8px rgba(0, 0, 0, .15); }
.sun-old__pickup p:first-child { margin-top:-.5px; color:#00b209; font-size:9.65px; font-weight:510; line-height:15px; letter-spacing:-.06px; }
.sun-old__pickup p:last-child { margin-top:1px; margin-bottom:-.5px; color:#111827; font-size:11.7px; font-weight:700; line-height:16px; }
.sun-old__clock { position:absolute; left:37px; top:257px; width:196px; display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
.sun-old__clock p:first-child { color:#7f7f7f; font-size:11px; font-weight:480; line-height:16px; letter-spacing:-.04px; white-space:nowrap; }
.sun-old__count { color:#000; font-size:40px; font-weight:700; line-height:48px; }
.sun-old__clock .sun-old__sec { margin-top:1px; color:#7f7f7f; font-size:18px; font-weight:590; line-height:21px; letter-spacing:.25px; }
.sun-old__sheet { position:absolute; left:0; bottom:0; width:271px; height:110px; background:#fff; }
.sun-old__btn { position:absolute; left:11px; width:248px; height:30px; display:flex; align-items:center; justify-content:center; color:#111827; font-size:11.7px; font-weight:590; line-height:17.6px; letter-spacing:.01em; }
.sun-old__btn--accept { bottom:67px; background:#fec140; }
.sun-old__btn--decline { bottom:29px; background:#cdcdcd; }

/* Figma 2 · the redesigned trip request. Three colours are darkened from the Figma file so every text pair meets
   WCAG AAA (7:1): drop label #747777 → #4d4f4f, Reject #d83025 → #a6251c, fare card #00654f → #005744. The trip-request copy
   (.tm-*) uses the same three colours. */
.sun-new { background:#111827; }
.sun-new > * { position:absolute; }
.sun-new__map { z-index:0; left:0; right:0; top:50.29px; bottom:0; overflow:hidden; border-radius:8.27px 8.27px 0 0; }
.sun-new__map img { position:absolute; left:-304.5px; top:-282.72px; width:575px; height:818.93px; }
.sun-new__route { z-index:1; left:0; top:0; width:271px; height:587px; overflow:visible; }
.sun-new__peek { z-index:2; left:11.02px; top:39.97px; width:248.72px; height:72.15px; border-radius:11.71px; background:rgba(255, 255, 255, .25); }
.sun-new__sheet { z-index:3; top:50.29px; left:0; right:0; height:39.96px; box-sizing:border-box; padding-top:8.65px; border-radius:6.89px 6.89px 0 0; background:#fff; display:grid; place-items:center; color:#111827; font-size:11.71px; font-weight:700; line-height:17.57px; }
.sun-new__grab { position:absolute; top:3.45px; left:50%; width:24.8px; height:3.44px; border-radius:1.72px; background:rgba(0, 0, 0, .25); transform:translateX(-50%); }
.sun-new__drop { z-index:3; left:11px; top:97px; width:202px; height:60px; box-sizing:border-box; padding:6px 11px; border-radius:5.5px; background:rgba(255, 255, 255, .75); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 2.8px 2.8px rgba(0, 0, 0, .15); }
.sun-new__drop small { display:block; margin-top:1px; color:#4d4f4f; font-size:9.6px; font-weight:400; line-height:1.35; }
.sun-new__drop b { display:block; margin-top:1.8px; color:#111827; font-size:11.7px; font-weight:700; line-height:16px; }
.sun-new__reject { z-index:3; left:218px; top:97px; width:42px; height:60px; box-sizing:border-box; padding-top:17px; border-radius:5.5px; background:#a6251c; color:#fff; box-shadow:0 2.8px 2.8px rgba(0, 0, 0, .15); display:flex; flex-direction:column; align-items:center; gap:4.5px; font-size:9.6px; font-weight:400; }
.sun-new__reject img { width:9.85px; height:9.85px; }
.sun-new__fare { z-index:3; left:11.02px; bottom:50.92px; width:248.72px; height:151.81px; box-sizing:border-box; padding:16.54px; border-radius:11.02px; background:#005744; color:#fefdfd; text-align:center; display:flex; flex-direction:column; align-items:center; }
.sun-new__count { display:block; flex:none; width:215.65px; height:3.44px; margin-bottom:16.54px; border-radius:13.78px; background:#fefdfd; }
.sun-new__fare small { margin-top:-.5px; font-size:11.71px; font-weight:400; line-height:17.57px; }
.sun-new__fare strong { margin-top:4.63px; font-size:22.05px; font-weight:700; line-height:28.25px; }
.sun-new__fare em { margin-top:5.13px; font-style:normal; color:#aaffb2; font-size:11.71px; font-weight:700; line-height:17.57px; }
.sun-new__chev { flex:none; margin-top:11.02px; width:15.85px; height:14.47px; overflow:visible; }

.sf-mock-stage:has(> .sf-sun),.sf-sun { grid-template-columns:minmax(0,1fr); }
.sf-sun,.sf-sun__screens > div { min-width:0; }

.pickme-trends { padding:clamp(14px,1.7vw,22px); border-radius:18px; background:var(--sf-surface); color:var(--sf-ink); }
.pickme-trends figcaption { font-weight:650; font-size:clamp(1rem,1.6vw,1.35rem); }
.pickme-trends > svg { width:100%; height:auto; display:block; margin-block:14px 8px; overflow:visible; }
.pickme-trends__legend { list-style:none; margin:0; padding:10px 0 0; border-top:1px solid var(--sf-line); display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,146px),1fr)); gap:12px; }
.pickme-trends__legend li { display:flex; align-items:baseline; gap:7px; }
.pickme-trends__legend svg { width:23px; height:14px; flex:none; align-self:flex-start; margin-top:3px; }
.pickme-trends__legend strong,.pickme-trends__legend small { display:block; line-height:1.4; }
.pickme-trends__legend strong { font-size:11px; }
.pickme-trends__legend small { font-size:11px; color:var(--sf-muted); margin-top:2px; }
.pickme-trends p { margin-top:12px; color:var(--sf-muted); font-size:11px; }
@media (prefers-reduced-motion:no-preference) {
  .pickme-trends.is-drawing .pickme-trends__curves { animation:trip-trend-draw 2.8s linear both; }
}
@keyframes trip-trend-draw { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0); } }

.sf-logo__mark .sf-logo__dot { color: var(--sf-accent-ink); }
.sf-logo__mark { display:inline-flex; align-items:center; justify-content:center; }
.sf-footer__id .sf-logo__mark .sf-logo__dot { color:#cabbff; }
.sf-footer__id .sf-logo__mark { color:#f7f5fa; }

/* Walkthrough (step tabs): aligned tab numbers, a copy column that fills the
   panel height, a status note, progress and previous/next controls, and a soft
   stage behind phone screenshots. */
.sf-walkthrough .sf-tab { align-items:center; }
.sf-walkthrough .walk-index { align-self:center; flex:none; display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 4px; border-radius:8px; line-height:1; font-size:.68rem; font-weight:650; background:var(--sf-surface-inset); }
.sf-walkthrough .sf-tab[aria-selected=true] .walk-index { background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); }
.sf-walkthrough .sf-tabs__panel { margin-top:var(--sf-space-content); }
.sf-walkthrough__panel { align-items:stretch; }
.sf-walkthrough__panel:has(.is-phone) { grid-template-columns:minmax(0,1fr) minmax(300px,.95fr); }
.sf-walkthrough__copy { display:flex; flex-direction:column; min-width:0; padding:8px 0; }
.sf-walkthrough__meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.sf-walkthrough__chip { display:inline-flex; align-items:center; min-height:24px; padding:2px 10px; border-radius:999px; font-size:.7rem; font-weight:650; background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); }
.sf-walkthrough__copy h3 { margin-top:14px; font-size:clamp(1.35rem,1.1rem + .6vw,1.7rem); letter-spacing:-.02em; }
.sf-walkthrough__copy > p { margin-top:14px!important; font-size:.95rem; color:var(--sf-text); }
.sf-walkthrough__note { margin-top:24px; max-width:52ch; }
.sf-walkthrough__foot { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:auto; padding-top:32px; }
.sf-walkthrough__progress { display:flex; flex:1; gap:6px; max-width:240px; margin:0; padding:0; list-style:none; }
.sf-walkthrough__progress li { flex:1; height:4px; border-radius:999px; background:color-mix(in srgb,var(--sf-ink) 14%,transparent); }
.sf-walkthrough__progress li.is-done { background:var(--sf-accent-ink); }
.sf-walkthrough__nav { display:flex; gap:8px; }
.sf-walkthrough__nav button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:var(--sf-surface-inset); color:var(--sf-ink); cursor:pointer; transition:background .2s,color .2s; }
.sf-walkthrough__nav button:hover:not(:disabled) { background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); }
.sf-walkthrough__nav button:focus-visible { outline:3px solid var(--sf-accent-ink); outline-offset:2px; }
.sf-walkthrough__nav button:disabled { opacity:.35; cursor:default; }
.sf-cs .sf-walkthrough__media.is-phone { display:grid; place-items:center; max-width:none; padding:8px 0 0; border-radius:0; background:none; box-shadow:none; }
.sf-cs .sf-walkthrough__media.is-phone img { max-height:440px; }
.sf-cs .sf-walkthrough__media.is-phone .sf-figure__frame { padding:0 0 52px; overflow:visible; }
.sf-cs .sf-walkthrough__media.is-phone .sf-zoom { left:0; right:0; bottom:0; width:fit-content; margin-inline:auto; }
@media(max-width:760px) {
 .sf-walkthrough__panel:has(.is-phone) { grid-template-columns:minmax(0,1fr); }
 .sf-walkthrough__foot { padding-top:24px; }
 .sf-cs .sf-walkthrough__media.is-phone { padding:8px 0 0; }
}
@media(forced-colors:active) { .sf-walkthrough__progress li.is-done { background:Highlight; } .sf-walkthrough__progress li { background:CanvasText; } }

/* Alerts: tinted glass with a soft gradient and a gradient icon badge.
   One vibrant colour (--alert) per tone drives every part; dark mode uses a
   lighter step of the same hue. */
.sf-alert { --alert:#64748b; position:relative; display:grid; grid-template-columns:34px minmax(0,1fr); gap:14px; align-items:start; padding:16px 18px 16px 16px; border-radius:18px; overflow:hidden; isolation:isolate;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb,var(--alert) 24%,transparent), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb,var(--alert) 12%,transparent), color-mix(in srgb,var(--alert) 4%,transparent) 70%),
    var(--sf-glass);
  border:1px solid color-mix(in srgb,var(--alert) 30%,transparent);
  box-shadow:inset 0 1px 0 var(--sf-rim-hi);
  -webkit-backdrop-filter:blur(14px) saturate(1.4); backdrop-filter:blur(14px) saturate(1.4); }
.sf-alert__icon { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; font-size:1rem; line-height:1; color:var(--alert-ink, var(--alert));
  background:linear-gradient(145deg, color-mix(in srgb,var(--alert) 30%,transparent), color-mix(in srgb,var(--alert) 10%,transparent)); }
.sf-alert__body { min-width:0; padding-top:1px; }
.sf-alert + .sf-alert { margin-top:12px; }
.sf-alert__body > button { margin-top:14px; }
.sf-alert__title { display:block; font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; line-height:1.5; color:var(--alert-ink, color-mix(in srgb,var(--alert) 70%,var(--sf-ink))); }
.sf-alert__body p { margin:6px 0 0!important; font-size:.88rem; line-height:1.6; color:var(--sf-text); }
.sf-alert__title:only-child { margin-top:7px; }
.sf-alert__body > p:only-child { margin-top:7px!important; }
/* Amber and emerald are too light for small text on a light page, so their
   text and icon use a deeper step (4.5:1 or better). */
.sf-alert--warning { --alert:#f59e0b; --alert-ink:#b45309; }
.sf-alert--success { --alert:#10b981; --alert-ink:#047857; }
.sf-alert--info    { --alert:#3b82f6; }
.sf-alert--danger  { --alert:#f43f5e; }
.sf-alert--neutral { --alert:#64748b; }
html.dark .sf-alert { --alert-ink:initial; }
html.dark .sf-alert--warning { --alert:#fbbf24; }
html.dark .sf-alert--success { --alert:#34d399; }
html.dark .sf-alert--info    { --alert:#60a5fa; }
html.dark .sf-alert--danger  { --alert:#fb7185; }
html.dark .sf-alert--neutral { --alert:#a5b4cb; }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { .sf-alert { -webkit-backdrop-filter:none; backdrop-filter:none; background:var(--sf-solid); } }
@media(forced-colors:active) { .sf-alert { border:1px solid CanvasText; background:Canvas; } .sf-alert__icon { color:CanvasText; } }

/* Navigation skeleton (Skeleton Elements, assets/css/vendor). Covers the page
   under the header from the moment a link is clicked until the next page paints. */
:root { --skeleton-color:color-mix(in srgb,var(--sf-ink) 9%,transparent); }
html.dark { --skeleton-color:color-mix(in srgb,var(--sf-ink) 11%,transparent); }
.sf-nav-skeleton { position:fixed; inset:0; z-index:90; overflow:hidden; padding-top:calc(var(--sf-header-h, 72px) + 40px); background:var(--sf-bg); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .14s ease, visibility 0s linear .14s; }
html.is-navigating .sf-nav-skeleton { opacity:1; visibility:visible; pointer-events:auto; transition:opacity .14s ease; }
.sf-nav-skeleton .skeleton-block { border-radius:10px; }
.sf-nav-skeleton__inner { display:flex; flex-direction:column; animation-duration:1.4s; }
.sf-nav-skeleton .sk-eyebrow { width:140px; height:12px; border-radius:6px; }
.sf-nav-skeleton .sk-title { width:min(720px,88%); height:clamp(36px,5vw,56px); margin-top:18px; border-radius:14px; }
.sf-nav-skeleton .sk-title--short { width:min(440px,60%); margin-top:12px; }
.sf-nav-skeleton .sk-lead { margin-top:28px; max-width:620px; }
.sf-nav-skeleton .sk-line { height:12px; margin-top:12px; border-radius:6px; }
.sf-nav-skeleton .sk-line--short { width:62%; }
.sf-nav-skeleton .sk-split { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:24px; margin-top:44px; }
.sf-nav-skeleton .sk-media { height:260px; border-radius:22px; }
.sf-nav-skeleton .sk-stack { display:grid; gap:16px; align-content:start; }
.sf-nav-skeleton .sk-row { display:grid; grid-template-columns:40px minmax(0,1fr); gap:14px; align-items:start; }
.sf-nav-skeleton .sk-row .sk-line:first-child { margin-top:4px; }
.sf-nav-skeleton .sk-dot { width:40px; height:40px; border-radius:12px; }
.sf-nav-skeleton .sk-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:32px; }
.sf-nav-skeleton .sk-card__media { height:120px; border-radius:18px; }
@media(max-width:760px) {
 .sf-nav-skeleton { padding-top:calc(var(--sf-header-h, 64px) + 28px); }
 .sf-nav-skeleton .sk-split,.sf-nav-skeleton .sk-cards { grid-template-columns:minmax(0,1fr); }
 .sf-nav-skeleton .sk-media { height:200px; }
 .sf-nav-skeleton .sk-cards .sk-card:nth-child(n+2) { display:none; }
}
@media(prefers-reduced-motion:reduce) {
 .sf-nav-skeleton__inner.skeleton-effect-wave { animation:none; -webkit-mask-image:none; mask-image:none; }
 .sf-nav-skeleton,html.is-navigating .sf-nav-skeleton { transition:none; }
}
@media print { .sf-nav-skeleton { display:none; } }

/* Home → How I lead: liquid-glass practice cards. */
.sf-lead-cards .sf-points { gap:16px; }
.sf-lead-cards .sf-point {
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; flex-direction:column; align-items:flex-start; gap:16px;
  height:100%; padding:26px; border:0; border-radius:26px;
  background:var(--sf-surface);
  -webkit-backdrop-filter:blur(18px) saturate(1.4); backdrop-filter:blur(18px) saturate(1.4);
  box-shadow:var(--sf-surface-shadow),inset 0 1px 0 var(--sf-glass-edge),inset 0 -1px 0 color-mix(in srgb,var(--sf-glass-edge) 40%,transparent);
}
.sf-lead-cards .sf-point__icon {
  display:grid; place-items:center; width:46px; height:46px; margin:0; border-radius:15px;
  font-size:1.15rem; color:var(--sf-accent-ink);
  background:var(--sf-surface-inset);
  box-shadow:none;
}
.sf-lead-cards .sf-point__body { display:flex; flex-direction:column; flex:1; width:100%; min-width:0; }
.sf-lead-cards .sf-point h3 { font-size:1.05rem; line-height:1.4; }
.sf-lead-cards .sf-point p { margin-top:14px; font-size:.875rem; line-height:1.65; }
.sf-lead-cards .sf-point__foot { margin-top:auto; padding-top:18px; font-size:.8rem; }
.sf-lead-cards .sf-point__foot a { text-decoration:none; }
.sf-lead-cards .sf-point__foot a::before { content:""; position:absolute; inset:0; z-index:1; } /* whole card clickable */
.sf-lead-cards .sf-point:focus-within { outline:2px solid var(--sf-accent-ink); outline-offset:3px; }
.sf-lead-cards .sf-point__foot a { transition:transform .2s ease; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .sf-lead-cards .sf-point { transition:background .2s ease,transform .2s ease; }
  .sf-lead-cards .sf-point:hover { background:var(--sf-accent-soft); color:var(--sf-accent-on-soft); transform:translateY(-3px); }
  .sf-lead-cards .sf-point:hover .sf-point__foot a { transform:translateX(3px); }
}
@media (max-width:700px) { .sf-lead-cards .sf-point { padding:22px; border-radius:22px; } }

/* Shared collapse motion: accordions and see more / see less.
   Height animates through grid rows (0fr ↔ 1fr), so no JS measuring.
   Without the head flag (no JS) every panel stays open and readable. */
.sf-collapse { display:grid; grid-template-rows:1fr; }
.sf-collapse > .sf-collapse__inner { min-height:0; overflow:hidden; }
.sf-collapse-js .sf-collapse:not(.is-open) { grid-template-rows:0fr; opacity:0; visibility:hidden; }
.sf-collapse-js .sf-collapse:not(.is-open) > .sf-collapse__inner > * { transform:translateY(-8px); }
@media (prefers-reduced-motion:no-preference) {
  .sf-collapse.is-ready {
    transition:grid-template-rows .5s var(--sf-liquid-ease), opacity .35s ease .08s, visibility 0s;
  }
  .sf-collapse.is-ready > .sf-collapse__inner > * { transition:transform .5s var(--sf-liquid-ease); }
  .sf-collapse-js .sf-collapse.is-ready:not(.is-open) {
    transition:grid-template-rows .42s var(--sf-liquid-ease), opacity .2s ease, visibility 0s linear .42s;
  }
}
/* Chevrons on any toggle rotate with the same easing. */
.sf-collapse-chev,[data-collapse-toggle] .acc-chev { transition:transform .45s var(--sf-liquid-ease); }
[data-collapse-toggle][aria-expanded="true"] :is(.sf-collapse-chev,.acc-chev),
[data-collapse-all][aria-expanded="true"] .sf-collapse-chev { transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce) { .sf-collapse-chev,[data-collapse-toggle] .acc-chev { transition:none; } }

/* Lightbox: message shown when a file fails to load (site.js initLightbox). */
.sf-lightbox__img img[hidden] { display:none; }
.sf-lightbox__missing { margin:0; padding:clamp(40px,8vw,96px) 24px; text-align:center; font-size:.95rem; color:var(--sf-text-2); }

/* Decision record and its evidence sit side by side once the column can hold both. */
.decision-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cs-gap);
  align-items: start;
}
.decision-split > .decision-sheet,
.decision-split > .sf-figure,
.decision-split > div { margin: 0; min-width: 0; }
.decision-split > .sf-figure figcaption { margin: 0; padding: 0; }
.decision-split .sf-tabs:has(.nav-specimen),
.decision-split .nav-specimen { max-width: none; }
.decision-split:has(.nav-specimen) { align-items: center; }
@media (min-width: 1040px) {
  .decision-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr);
    gap: clamp(20px, 2.4vw, 32px);
  }
  /* The sunlight comparison is square. Size it to the decision card, and no wider than the column. */
  #decision .decision-split { align-items: stretch; }
  #decision .decision-split > .sf-figure {
    container-type: size;
    height: 0;
    min-height: 100%;
    align-items: flex-start;
  }
  #decision .decision-split .sf-figure__frame {
    flex: 0 0 auto;
    width: min(100cqw, 100cqh);
    max-width: 100%;
    aspect-ratio: 1;
    height: auto;
  }
  #decision .decision-split .sf-figure__frame img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }
}

/* Chart and sketch sheet stay side by side until the column is too narrow. */
#layouts .layout-pair {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
#layouts .layout-pair > .fx-figure { margin: 0; }
#layouts .layout-pair > .sf-figure { margin: 0; min-width: 0; gap: 8px; }
#layouts .layout-pair > .sf-figure figcaption { margin: 0; padding: 0; }
@media (min-width: 761px) {
  #layouts .layout-pair { align-items: stretch; margin-bottom: 48px; }
  #layouts .layout-pair > .sf-figure { position: relative; height: 0; min-height: 100%; }
  #layouts .layout-pair .sf-figure__frame { height: 100%; }
  #layouts .layout-pair .sf-figure__frame img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
  #layouts .layout-pair > .sf-figure figcaption {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
  }
}
@media (max-width: 760px) {
  #layouts .layout-pair { grid-template-columns: 1fr; }
  #layouts .layout-pair .sf-figure__frame img { width: 100%; height: auto; max-height: none; }
}

/* Case studies use one spacing scale.
   24px between related pieces, 32px between columns, 28px inside a card,
   56px between sections, 80px between chapters. Page inset is 20 / 32 / 48. */
.sf-cs {
  --sf-space-content: 24px;
  --sf-space-grid: 24px;
  --sf-space-split: 32px;
  --sf-space-section: 56px;
  --sf-space-chapter: 80px;
  --sf-card-pad: 28px;
}
.sf-cs > .sf-hero { display: flow-root; }
.sf-cs > .sf-hero .sf-hero__grid,
.sf-cs--feature .sf-hero__grid { gap: var(--sf-space-split); }
.sf-cs > .sf-hero .sf-meta {
  margin-top: var(--sf-space-split);
  padding: var(--sf-card-pad);
  gap: var(--sf-space-grid);
}
.sf-cs > .sf-hero + .sf-container,
.sf-cs > .sf-container + .sf-container { margin-top: var(--sf-space-chapter); }
.sf-cs .sf-cs__content,
.sf-cs .case-chapter {
  display: flex;
  flex-direction: column;
}
.sf-cs .sf-cs__content { gap: var(--sf-space-chapter); }
.sf-cs .case-chapter { margin: 0; padding: 0; gap: var(--sf-space-section); }
.sf-cs .case-chapter > * { margin-block: 0; }
.sf-cs .case-chapter > .sf-section {
  display: flow-root;
  margin: 0;
  padding: 0;
}
.sf-cs .sf-section__head { margin-bottom: var(--sf-space-content); }
:is(.sf-cs, .sf-pager) .sf-continue {
  margin-top: 0;
  padding-block: 0 72px;
  gap: var(--sf-space-grid);
}
.sf-cs :is(
  .sf-process-gallery,
  .sf-feature-grid,
  .sf-evidence-cards,
  .sf-route-map,
  .sf-results-charts,
  .sf-points,
  .sf-grid,
  .fx-row,
  .fx-results,
  .fx-facts,
  .decision-pair,
  .pickup-decisions,
  .sf-continue
) { gap: var(--sf-space-grid); }
.sf-cs :is(
  .sf-process-spread,
  .sf-editorial-split,
  .fx-waffle-split,
  .decision-sheet,
  .sf-walkthrough__panel,
  .trip-motion-stage,
  .layout-pair
) { gap: var(--sf-space-split); }
.sf-cs[data-project="pickme"] #problem .fx-row--problem,
.sf-cs .fx-waffle-card,
.sf-cs .fx-waffle-split { gap: var(--sf-space-split); }
.sf-cs .fx-facts--list,
.sf-cs .fx-row > .fx-facts { gap: var(--sf-space-grid); }
.sf-cs #layouts .layout-pair { gap: var(--sf-space-split); }
.sf-cs .sf-process-spread { align-items: start; }
.sf-cs .pickup-decisions,
.sf-cs .decision-pair { align-items: stretch; }
.sf-cs :is(.pickup-decisions, .decision-pair) > .decision-sheet {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.sf-cs :is(.pickup-decisions, .decision-pair) .fx-choice__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sf-cs :is(.pickup-decisions, .decision-pair) .fx-choice__scale {
  flex: 0 0 auto;
  margin-top: auto;
}
.sf-cs .decision-sheet + .decision-sheet,
.sf-cs .sf-block,
.sf-cs .sf-process-note,
.sf-cs .sf-table-wrap:has(.sf-evidence-table) { margin-top: var(--sf-space-content); }
.sf-cs .sf-stack { --sf-gap: var(--sf-space-content); }
.sf-cs :is(
  .sf-point,
  .sf-points--stack .sf-point,
  .sf-evidence-card,
  .sf-route-map__lane,
  .sf-results-charts .fx-card,
  .pickme-trends,
  .sf-problem-map,
  .decision-sheet,
  .sf-walkthrough,
  .fx-results__group,
  .sf-editorial-split > .sf-prose,
  .sf-editorial-split > .sf-margin-note,
  .sf-closing-note
) { padding: var(--sf-card-pad); }
@media (max-width: 760px) {
  .sf-cs {
    --sf-space-content: 20px;
    --sf-space-grid: 20px;     /* same as --cs-gap on phones: one card gap */
    --sf-space-split: 20px;
    --sf-space-section: 44px;  /* same as --cs-section on phones */
    --sf-space-chapter: 56px;
    --sf-card-pad: 20px;
  }
}

/* Decision pair: equal tops, and lead / options / trade-off / note rows line up across both cards. */
.sf-cs .decision-pair > .decision-sheet + .decision-sheet { margin-top: 0; }
@media (min-width: 981px) {
  .sf-cs .decision-pair {
    grid-template-rows: auto auto auto 1fr;
    row-gap: 0;
  }
  .sf-cs .decision-pair > .decision-sheet {
    display: grid;
    grid-row: span 4;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    row-gap: 0;
    height: auto;
  }
  .sf-cs .decision-pair .fx-choice__body { display: contents; }
  .sf-cs .decision-pair .decision-options,
  .sf-cs .decision-pair .fx-choice__scale,
  .sf-cs .decision-pair .fx-choice__note { margin-top: 20px; }
  .sf-cs .decision-pair .fx-choice__scale { align-self: stretch; }
  .sf-cs .decision-pair .fx-choice__note { align-self: start; }
}

/* ==========================================================================
   Case study design tokens — one spacing and shape scale for every page.
   Loaded last on purpose: it settles the card, tile and gap values that
   earlier files set inconsistently (24/26/28/32 padding, 14-30px radii).
   ========================================================================== */
.sf-cs {
  --cs-gap: 24px;            /* between blocks and cards in a grid */
  --cs-gap-sm: 16px;         /* inside a card, between groups */
  --cs-gap-xs: 8px;          /* label to value, icon to text */
  --cs-section: 56px;        /* between sections / chapters */
  --cs-pad: 28px;            /* standard card padding */
  --cs-pad-lg: 32px;         /* feature cards, outcomes, hero panels */
  --cs-tile-pad: 16px 18px;  /* tiles nested inside a card */
  --cs-r: 24px;              /* cards */
  --cs-r-tile: 16px;         /* tiles inside cards */
  --cs-r-media: 18px;        /* image frames */
}
@media (max-width: 760px) {
  .sf-cs { --cs-pad: 20px; --cs-pad-lg: 22px; --cs-gap: 20px; --cs-section: 44px; }
}

/* Cards: one padding, one radius. */
.sf-cs :is(
  .decision-sheet, .sf-card, .sf-evidence-card, .sf-point, .sf-closing-note, .sf-meta,
  .fx-figure, .fx-results__group, .sf-journey__step, .sf-problem-map, .sf-cover-diagram,
  .v-methods__card, .sf-route-map__lane, .sf-walkthrough, .sf-table-wrap:has(.sf-evidence-table),
  .sf-points--stack .sf-point, .is-hit, .is-miss
) { padding: var(--cs-pad); border-radius: var(--cs-r); }
.sf-cs :is(.sf-feature, .sf-feature-diagram, .sf-outcome, .sf-continue__link) {
  padding: var(--cs-pad-lg); border-radius: var(--cs-r);
}
.sf-cs .sf-index__row { border-radius: var(--cs-r); }

/* Tiles that sit inside a card. */
.sf-cs :is(
  .fx-choice__side, .decision-options li, .fx-choice__note, .sf-alert,
  .sf-evidence-card__limit, .fx-layers__item, .sf-problem-map__outcome, .v-methods__sum
) { padding: var(--cs-tile-pad); border-radius: var(--cs-r-tile); }
.sf-cs .sf-problem-map__node { padding: 20px; border-radius: var(--cs-r-tile); }
.sf-cs .sf-figure__frame { border-radius: var(--cs-r-media); }

/* Gaps: same rhythm inside every card. */
.sf-cs .decision-sheet { gap: var(--cs-gap-sm); }
.sf-cs .decision-options, .sf-cs .fx-choice__scale { gap: var(--cs-gap-xs); }
.sf-cs .fx-choice__side { gap: var(--cs-gap-xs); }
.sf-cs .fx-row, .sf-cs .fx-results, .sf-cs .sf-points, .sf-cs .sf-evidence-cards,
.sf-cs .sf-feature-grid, .sf-cs .sf-journey, .sf-cs .sf-process-gallery,
:is(.sf-cs, .sf-pager) .sf-continue { gap: var(--cs-gap); }
.sf-cs .sf-figure { gap: 12px; }
.sf-cs .sf-figure figcaption, .sf-cs .sf-design-preview figcaption { gap: 8px 16px; padding-block: 12px 0; }
.sf-cs .sf-split { gap: clamp(32px, 5vw, 64px); }

/* Vertical rhythm between blocks, including the pickup film. */
.sf-cs .case-chapter { gap: var(--cs-section); }
.sf-cs .fx-facts + .pf, .sf-cs .pf-pair, .sf-cs .pf-picks { margin-top: var(--cs-gap); }
.sf-cs .pf-lead { margin: 0 0 var(--cs-gap); }
.sf-cs .pf-pair, .sf-cs .pf-picks { gap: var(--cs-gap); }
.sf-cs .sf-problem-map + .fx-figure { margin-top: var(--cs-gap); }
.sf-cs .sf-tabs + .sf-small { margin-top: var(--cs-gap-sm); }
.sf-cs .v-methods + .v-methods__sum { margin-top: var(--cs-gap); }
.sf-cs .pf-lead + .v-methods { margin-top: 0; }

/* Decision pair keeps its lead / options / trade-off rows aligned (see above). */
@media (min-width: 981px) {
  .sf-cs .decision-pair .decision-options,
  .sf-cs .decision-pair .fx-choice__scale,
  .sf-cs .decision-pair .fx-choice__note { margin-top: var(--cs-gap-sm); }
}

/* Stragglers brought onto the same scale. */
.sf-cs :is(.is-hi, .sf-drift__set, .sf-route-map__panel) { border-radius: var(--cs-r-tile); }
.sf-cs :is(.sf-compare__img, .sf-loading, .sf-walkthrough__media) { border-radius: var(--cs-r-media); }
.sf-cs .sf-walkthrough__media { padding: var(--cs-pad-lg) var(--cs-gap); }
.sf-cs .pickme-trends { padding: var(--cs-pad); border-radius: var(--cs-r); }
.sf-cs .nav-specimen { padding: 20px; border-radius: var(--cs-r-tile); }

/* Illustrations that sit on a bare frame get the same stage as the hero previews. */
.sf-cs .sf-figure__frame--plain:has(> .sf-svg-inline, > object.sf-preview-art) {
  padding: var(--cs-pad);
  border-radius: var(--cs-r);
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--sf-accent) 14%, #faf9f6), #f1f2f4 85%);
  place-items: center;
  height: auto;
}
.sf-cs .sf-figure__frame--plain > :is(.sf-svg-inline, object.sf-preview-art) { width: 100%; max-width: 560px; height: auto; margin-inline: auto; }
/* Accept card is taller than the 385/238 preview ratio once “Slide up to accept” is included. */
.sf-preview-stage > .sf-svg-inline.sf-svg-inline--accept,
.sf-figure__frame > .sf-svg-inline.sf-svg-inline--accept,
.sf-cs .sf-figure__frame--plain > .sf-svg-inline--accept {
  aspect-ratio: 381.565 / 274.805;
}
.sf-feature-grid .sf-preview-stage > .sf-svg-inline--accept {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 381.565 / 274.805;
}
.sf-feature-grid .sf-preview-stage > .sf-svg-inline--accept > svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
}
.sf-cs .sf-figure__frame--plain:has(> .sf-svg-inline) .sf-zoom { right: 14px; bottom: 14px; }

/* ==========================================================================
   Route map — "block a lost card" as two depth staircases, side by side.
   Every menu choice steps one level deeper; a dotted elbow joins each pick to the
   next screen. The original route goes five screens deep, the revised one three.
   Choreography is armed by assets/js/site.js and uses transform and opacity only.
   ========================================================================== */
.sf-depth { --indent: clamp(18px, 2.2vw, 30px); --beat: .6s; --route-ease: cubic-bezier(.16, 1, .3, 1); display: grid; gap: var(--cs-gap); }
.sf-depth__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--cs-gap); align-items: stretch; }
.sf-depth__lane {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: var(--cs-pad, 28px);
  border-radius: var(--cs-r, 24px);
  background: var(--cs-glass, var(--sf-surface));
  box-shadow: var(--cs-rim, none);
}
.sf-depth__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sf-depth__head h3 { margin: 0; color: var(--sf-ink); font-size: 1.15rem; line-height: 1.3; }
.sf-depth__head p { margin: 4px 0 0; color: var(--sf-text-2); font-size: .875rem; line-height: 1.5; }
.sf-depth__count { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--sf-accent-soft); color: var(--sf-accent-on-soft, var(--sf-accent-ink)); font-size: .8rem; line-height: 1.5; white-space: nowrap; }
.sf-depth__count strong { font-weight: 750; }
.sf-depth__lane[data-lane="revised"] .sf-depth__count { background: var(--sf-ok-soft); color: var(--sf-ok); }

/* The staircase: each step indents one level; an elbow drops from the last pick. */
.sf-depth__steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sf-depth__step { position: relative; margin-inline-start: calc(var(--i) * var(--indent)); }
.sf-depth__step + .sf-depth__step::before {
  content: "";
  position: absolute;
  left: calc(var(--indent) * -1 + 18px);
  top: -14px;
  width: calc(var(--indent) - 18px);
  height: calc(14px + 26px);
  border-left: 2px dotted color-mix(in srgb, var(--sf-accent) 75%, transparent);
  border-bottom: 2px dotted color-mix(in srgb, var(--sf-accent) 75%, transparent);
  border-bottom-left-radius: 10px;
}
.sf-depth__step.is-goal::before { height: calc(14px + 42px); border-color: color-mix(in srgb, var(--sf-ok) 80%, transparent); }
.sf-depth__win {
  position: relative;
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--cs-r-tile, 14px);
  border: 1px solid var(--sf-line);
  background: color-mix(in srgb, var(--sf-ink) 4%, var(--sf-bg));
}
.sf-depth__page { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--sf-muted); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.sf-depth__dots { display: inline-flex; gap: 3px; }
.sf-depth__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sf-line-strong); }
.sf-depth__pick { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--sf-accent); background: var(--sf-surface); color: var(--sf-ink); font-size: .86rem; font-weight: 600; line-height: 1.3; }
.sf-depth__num { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sf-accent); color: #fff; font-size: .7rem; font-weight: 700; }
.sf-depth__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-depth__pick > .bi { flex: none; font-size: .75rem; color: var(--sf-muted); }
.sf-depth__cursor { position: absolute; right: 6px; bottom: -9px; width: 14px; height: 19px; fill: var(--sf-ink); stroke: var(--sf-bg); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px #0003); }
.sf-depth__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sf-depth__step.is-goal .sf-depth__win { grid-template-columns: auto minmax(0, 1fr); min-height: 84px; padding: 12px 16px; border-color: var(--sf-ok); background: color-mix(in srgb, var(--sf-ok) 10%, var(--sf-bg)); }
.sf-depth__step.is-goal .sf-depth__win::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-ok) 22%, transparent); opacity: 0; pointer-events: none; }
.sf-depth__art { width: 56px; height: 49px; }
.sf-depth__goal-body { display: grid; gap: 2px; }
.sf-depth__goal-body b { color: var(--sf-ink); font-size: .95rem; }
.sf-depth__goal-body small { color: var(--sf-text-2); font-size: .8rem; }

/* The revised lane's spare depth: the menus it removed, struck through. */
.sf-depth__saved {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px dashed color-mix(in srgb, var(--sf-ok) 55%, transparent);
  border-radius: var(--cs-r-tile, 14px);
  background: color-mix(in srgb, var(--sf-ok) 6%, transparent);
}
.sf-depth__saved-head { display: flex; align-items: center; gap: 14px; margin: 0; }
.sf-depth__saved-num { flex: none; color: var(--sf-ok); font-size: clamp(2rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sf-depth__saved-head b { display: block; color: var(--sf-ink); font-size: .95rem; line-height: 1.35; }
.sf-depth__saved-head small { display: block; color: var(--sf-text-2); font-size: .84rem; line-height: 1.5; }
.sf-depth__ghosts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sf-depth__ghosts li { position: relative; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--sf-line-strong); color: var(--sf-muted); font-size: .8rem; font-weight: 600; }
.sf-depth__ghosts li + li::before { content: "›"; position: absolute; left: -7px; top: 50%; transform: translate(-50%, -50%); color: var(--sf-muted); }
.sf-depth__ghosts li span::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: color-mix(in srgb, var(--sf-ok) 80%, var(--sf-ink)); transform-origin: left center; }
.sf-depth__play { align-self: flex-start; margin-top: auto; }

.sf-depth__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sf-depth__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; color: var(--sf-text-2); font-size: .84rem; }
.sf-depth__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sf-depth__legend i { width: 16px; height: 12px; border-left: 2px dotted var(--sf-accent); border-bottom: 2px dotted var(--sf-accent); border-bottom-left-radius: 6px; }
.sf-depth__legend i.is-goal { width: 14px; height: 14px; border: 1.5px solid var(--sf-ok); border-radius: 4px; background: color-mix(in srgb, var(--sf-ok) 18%, transparent); }

@media (max-width: 980px) {
  .sf-depth__lane { grid-column: 1 / -1; }
  .sf-depth { --indent: 18px; }
}
@media (max-width: 480px) {
  .sf-depth__win { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sf-depth__head { flex-wrap: wrap; }
}

/* Choreography: both staircases start together, one beat per menu. Each screen opens,
   the cursor lands and taps, the elbow leads down to the next screen. The revised
   route reaches Block card two beats earlier; then the removed menus are struck out. */
.sf-depth.is-armed .sf-depth__step { opacity: .28; transform: translateX(-10px); }
.sf-depth.is-armed .sf-depth__step::before { opacity: 0; }
.sf-depth.is-armed .sf-depth__cursor { opacity: 0; transform: translate(10px, 12px); }
.sf-depth.is-armed .sf-depth__saved { opacity: 0; transform: translateY(10px); }
.sf-depth.is-armed .sf-depth__ghosts li span::after { transform: scaleX(0); }

.sf-depth.is-playing .sf-depth__step { animation: depth-open .5s var(--route-ease) calc(.35s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__step::before { animation: depth-fade .35s ease calc(.2s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__cursor { animation: depth-cursor .4s var(--route-ease) calc(.5s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__pick { animation: depth-tap .3s ease calc(.78s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__step.is-goal { animation: depth-goal .75s cubic-bezier(.34, 1.56, .64, 1) calc(.35s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__step.is-goal .sf-depth__win::after { animation: depth-glow 1.6s ease calc(.5s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__saved { animation: depth-rise .6s var(--route-ease) calc(.5s + var(--i) * var(--beat)) both; }
.sf-depth.is-playing .sf-depth__ghosts li span::after { animation: depth-strike .45s cubic-bezier(.65, 0, .35, 1) calc(.95s + var(--i) * var(--beat) + var(--g) * .14s) both; }

@keyframes depth-open { from { opacity: .28; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes depth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes depth-cursor { from { opacity: 0; transform: translate(10px, 12px); } to { opacity: 1; transform: none; } }
@keyframes depth-tap { 0%, 100% { transform: scale(1); } 45% { transform: scale(.96); } }
@keyframes depth-goal { 0% { opacity: .28; transform: translateX(-10px) scale(.97); } 60% { opacity: 1; transform: scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes depth-glow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .4; } }
@keyframes depth-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes depth-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .sf-depth * , .sf-depth *::before, .sf-depth *::after { animation: none !important; }
  .sf-depth__replay { display: none !important; }
}

/* Pickup decisions: equal tops, and the lead / gained / cost rows align across all three cards. */
.sf-cs :is(.decision-pair, .pickup-decisions) > .decision-sheet + .decision-sheet { margin-top: 0; }
.sf-cs .pickup-decisions { align-items: stretch; gap: var(--cs-gap); }
@media (min-width: 1001px) {
  .sf-cs .pickup-decisions { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .sf-cs .pickup-decisions > .decision-sheet {
    display: grid;
    grid-row: span 3;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    row-gap: 0;
    height: auto;
  }
  .sf-cs .pickup-decisions .fx-choice__body,
  .sf-cs .pickup-decisions .fx-choice__scale { display: contents; }
  .sf-cs .pickup-decisions .fx-choice__side { margin-top: var(--cs-gap-sm); }
}

/* ==========================================================================
   "The design logic" — three steps across, on the page background.
   ========================================================================== */
.sf-cs .case-chapter > .sf-feature-diagram {
  position: relative;
  isolation: isolate;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.sf-cs .case-chapter > .sf-feature-diagram figcaption {
  display: grid;
  gap: var(--cs-gap-xs);
  margin-bottom: var(--cs-gap);
}
.sf-cs .case-chapter > .sf-feature-diagram figcaption strong { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; text-wrap: balance; }
.sf-cs .case-chapter > .sf-feature-diagram > ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sf-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: logic;
}
.sf-cs .case-chapter > .sf-feature-diagram > ol > li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: var(--cs-gap-sm);
  padding: var(--cs-pad);
  border: 0;
  border-radius: var(--cs-r);
}
.sf-cs .case-chapter > .sf-feature-diagram > ol > li strong { display: block; font-size: 1.02rem; line-height: 1.35; color: var(--sf-ink); }
.sf-cs .case-chapter > .sf-feature-diagram > ol > li p { margin: 6px 0 0; font-size: .92rem; line-height: 1.55; color: var(--sf-text-2); }
@media (min-width: 860px) {
  .sf-cs .case-chapter > .sf-feature-diagram > ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sf-gap); }
}
@media (min-width: 860px) and (max-width: 1100px) {
  /* Three narrow columns: stack icon above text so nothing is squeezed. */
  .sf-cs .case-chapter > .sf-feature-diagram > ol > li { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
.sf-page { overflow-x: clip; }

/* ==========================================================================
   Glass rim — one light edge for every card: a bright top edge, a faint
   ring all round, and the soft drop shadow. Set last so no component loses it.
   ========================================================================== */
.sf-cs {
  --cs-glass: linear-gradient(145deg, var(--sf-surface-inset), transparent 65%), var(--sf-surface);
  --cs-rim: var(--sf-surface-shadow),
            inset 0 1px 0 var(--sf-glass-edge),
            inset 0 0 0 1px color-mix(in srgb, var(--sf-glass-edge) 32%, transparent);
}
.sf-cs :is(
  .decision-sheet, .sf-card, .sf-evidence-card, .sf-point, .sf-closing-note, .sf-meta,
  .fx-figure, .fx-results__group, .sf-journey__step, .sf-problem-map, .sf-cover-diagram,
  .v-methods__card, .sf-route-map__lane, .sf-walkthrough, .sf-table-wrap:has(.sf-evidence-table),
  .sf-feature, .sf-outcome, .sf-continue__link, .pickme-trends
) { box-shadow: var(--cs-rim); }
.sf-cs :is(.sf-route-map__lane, .case-chapter > .sf-feature-diagram > ol > li) { background: var(--cs-glass); }
.sf-cs :is(.fx-choice__side, .decision-options li, .sf-alert, .sf-problem-map__node, .fx-layers__item) {
  box-shadow: inset 0 1px 0 var(--sf-glass-edge);
}
.sf-cs .case-chapter > .sf-feature-diagram > ol > li { box-shadow: var(--cs-rim); }
/* A process of separate cards does not need a second box around them. */
.sf-cs .fx-figure.fx-figure--bare {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sf-cs .sf-route-map__panel { box-shadow: inset 0 1px 0 var(--sf-glass-edge); }

/* ==========================================================================
   Chapter bands
   Each chapter of a feature study (The problem, The goal, The approach, The outcome) and each
   part of a project overview sits on its own full-width band.
   Bands alternate soft (a faint wash of the project accent) and deep (a darker tone of the page),
   so the reader always knows where one part of the story ends. Bands stay in the page's own
   theme, so text and cards keep their contrast. The band is painted with border-image outset:
   it runs edge to edge without widening the page or using a pseudo-element.
   ========================================================================== */
.sf-cs {
  --band-soft: color-mix(in srgb, var(--sf-accent) 8%, transparent);
  --band-deep: color-mix(in srgb, var(--sf-ink) 7%, transparent);
  --band-edge: transparent;
  --band-pad: clamp(56px, 6vw, 96px);
}
html.dark .sf-cs {
  --band-soft: color-mix(in srgb, var(--sf-accent) 9%, transparent);
  --band-deep: rgb(0 0 0 / .38);
}
.sf-cs .case-chapter[data-band] {
  --band: var(--band-soft);
  padding-block: var(--band-pad);
  border-image-source: linear-gradient(var(--band-edge) 0 1px, var(--band) 1px);
  border-image-slice: 0 fill;
  border-image-outset: 0 100vw;
}
.sf-cs .case-chapter[data-band="deep"] { --band: var(--band-deep); }
/* Bands meet edge to edge: the band padding replaces the gap between chapters. */
.sf-cs .sf-cs__content:has(> .case-chapter[data-band]) { gap: 0; }
/* The band change is the separator, so a part header needs no rule line above it. */
.sf-cs .dx-part > .dx-head { padding-top: 0; border-top: 0; }
/* The first band starts a chapter gap below the hero (the dot rail sits between them in the markup). */
.sf-cs > :is(.sf-hero, .dx-nav) + .sf-container { margin-top: var(--sf-space-chapter); }
@media (forced-colors: active) { .sf-cs .case-chapter[data-band] { border-image-source: none; border-top: 1px solid CanvasText; } }
@media print { .sf-cs .case-chapter[data-band] { border-image-source: none; padding-block: 24px; } }

/* The role facts sit under the hero and run edge to edge on every case study. */
.sf-cs > .sf-hero .sf-meta {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  border-radius: 0;
  padding-inline: max(var(--sf-page-inset, 32px), calc((100vw - 1280px) / 2));
}
.sf-cs .case-chapter > .sf-feature-diagram::after { display: none; }
.sf-cs .case-chapter > .sf-feature-diagram { border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Cards keep the liquid glass look inside bands; only the band itself is flat. */


/* Pager outside a case study (AI & strategy frameworks): the same tokens and card treatment the
   case-study pager gets from the .sf-cs rules above, so both share one set of rules below. */
.sf-pager {
  --sf-space-grid: 24px;
  --cs-gap: 24px;
  --cs-pad-lg: 32px;
  --cs-r: 24px;
  --cs-rim: var(--sf-surface-shadow),
            inset 0 1px 0 var(--sf-glass-edge),
            inset 0 0 0 1px color-mix(in srgb, var(--sf-glass-edge) 32%, transparent);
}
@media (max-width: 640px) { .sf-pager { --cs-gap: 20px; --cs-pad-lg: 22px; } }
.sf-pager .sf-continue__link { padding: var(--cs-pad-lg); border-radius: var(--cs-r); box-shadow: var(--cs-rim); }

/* ==========================================================================
   Previous / next cards — a liquid hover that matches the rest of the site:
   lift, a pointer-following accent sheen, a brighter rim, and the arrow chip
   filling with accent while the arrow glides in its direction.
   ========================================================================== */
:is(.sf-cs, .sf-pager) .sf-continue__link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  transition: transform .4s var(--sf-liquid-ease), box-shadow .4s var(--sf-liquid-ease);
}
:is(.sf-cs, .sf-pager) .sf-continue__link::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--sf-mx, 50%) var(--sf-my, 50%), color-mix(in srgb, var(--sf-accent) 26%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--sf-liquid-ease);
}
:is(.sf-cs, .sf-pager) .sf-continue__arrow {
  border: 0;
  transition: background-color .3s var(--sf-liquid-ease), color .3s var(--sf-liquid-ease), transform .4s var(--sf-liquid-ease);
}
:is(.sf-cs, .sf-pager) .sf-continue__arrow .bi { transition: transform .4s var(--sf-liquid-ease); }
:is(.sf-cs, .sf-pager) .sf-continue__direction { transition: color .3s var(--sf-liquid-ease); }
@media (hover: hover) {
  :is(.sf-cs, .sf-pager) .sf-continue__link:hover,
  :is(.sf-cs, .sf-pager) .sf-continue__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--sf-accent) 55%, #000),
                inset 0 1px 0 var(--sf-rim-hi),
                inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 22%, transparent);
  }
  :is(.sf-cs, .sf-pager) .sf-continue__link:hover::after,
  :is(.sf-cs, .sf-pager) .sf-continue__link:focus-visible::after { opacity: 1; }
  :is(.sf-cs, .sf-pager) .sf-continue__link:hover .sf-continue__arrow,
  :is(.sf-cs, .sf-pager) .sf-continue__link:focus-visible .sf-continue__arrow { background: var(--sf-accent); color: #fff; transform: scale(1.06); }
  :is(.sf-cs, .sf-pager) .sf-continue__link:hover .sf-continue__direction,
  :is(.sf-cs, .sf-pager) .sf-continue__link:focus-visible .sf-continue__direction { color: var(--sf-accent-ink); }
  :is(.sf-cs, .sf-pager) .sf-continue__link:not(.is-back):not(.is-overview):not(:first-of-type):hover .sf-continue__arrow .bi { transform: translateX(3px); }
  :is(.sf-cs, .sf-pager) .sf-continue__link:is(.is-back, :first-of-type):not(.is-overview):hover .sf-continue__arrow .bi { transform: translateX(-3px); }
}
:is(.sf-cs, .sf-pager) .sf-continue__link:active { transform: translateY(-1px) scale(.995); transition-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
  :is(.sf-cs, .sf-pager) .sf-continue__link, :is(.sf-cs, .sf-pager) .sf-continue__arrow, :is(.sf-cs, .sf-pager) .sf-continue__arrow .bi { transition: none; }
  :is(.sf-cs, .sf-pager) .sf-continue__link:hover { transform: none; }
}
:is(.sf-cs, .sf-pager) .sf-continue { border-top: 0; }

/* ==========================================================================
   Screenshot galleries — each phone sits on its own glass tile, centred, with
   the enlarge control tucked inside the tile's corner and captions aligned.
   ========================================================================== */
.sf-cs .sf-process-gallery { align-items: start; gap: var(--cs-gap); }
.sf-cs .sf-process-gallery .sf-figure { display: grid; gap: var(--cs-gap-sm); align-content: start; }
.sf-cs .sf-process-gallery .sf-figure__frame {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--cs-r);
  background: var(--cs-glass);
  box-shadow: var(--cs-rim);
  padding: var(--cs-pad);
  align-items: center;
}
.sf-cs .sf-process-gallery .sf-figure__frame img { object-fit: contain; object-position: center; border-radius: 0; }
.sf-cs .sf-process-gallery .sf-zoom {
  top: 12px;
  right: 12px;
  bottom: auto;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  justify-content: center;
  background: color-mix(in srgb, var(--sf-ink) 78%, transparent);
  color: var(--sf-bg);
  box-shadow: 0 6px 16px -8px #0007;
  opacity: .9;
  transition: opacity .25s var(--sf-liquid-ease), transform .3s var(--sf-liquid-ease);
}
.sf-cs .sf-process-gallery .sf-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sf-cs .sf-process-gallery .sf-zoom:hover, .sf-cs .sf-process-gallery .sf-zoom:focus-visible { opacity: 1; transform: scale(1.08); }
.sf-cs .sf-process-gallery figcaption { padding: 0 4px; }
.sf-cs .sf-process-gallery figcaption strong { margin-bottom: 4px; }
.sf-cs .sf-process-gallery figcaption span { margin-top: 0; }

/* Trip request · problem + before/after lists: glass cards beside a phone, same as every fact card */
.sf-cs[data-project="pickme"] :is(#problem .fx-row--problem, #shipped .sf-split) > .fx-facts {
  gap: var(--sf-space-grid, 16px);
  max-width: 560px;
  align-self: center;
}
.sf-cs[data-project="pickme"] :is(#problem .fx-row--problem, #shipped .sf-split) > .fx-facts > li {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  background: var(--sf-surface);
  border: 0;
  border-radius: 20px;
}
.sf-cs[data-project="pickme"] :is(#problem .fx-row--problem, #shipped .sf-split) .fx-facts__icon { width: 44px; height: 44px; border-radius: 13px; font-size: 1.15rem; }
.sf-cs[data-project="pickme"] :is(#problem .fx-row--problem, #shipped .sf-split) .fx-facts__body { gap: 0; }
.sf-cs[data-project="pickme"] :is(#problem .fx-row--problem, #shipped .sf-split) .fx-facts__body > strong { font-size: 1.05rem; line-height: 1.4; letter-spacing: -.01em; }
.sf-cs[data-project="pickme"] :is(#problem .fx-row--problem, #shipped .sf-split) .fx-facts__body > span { margin-top: 8px; font-size: .9rem; line-height: 1.75; max-width: 46ch; }

/* Trip request · before/after: no backing plate, phone and list balanced as one pair */
.sf-cs[data-project="pickme"] #shipped :is(.sf-figure__frame, .sf-compare, .sf-compare img, .sf-compare__after) {
  background: transparent;
  box-shadow: none;
}
.sf-cs[data-project="pickme"] #shipped .sf-split--fit {
  grid-template-columns: minmax(0, 340px) minmax(0, 540px);
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}
.sf-cs[data-project="pickme"] #shipped .sf-split--fit > .sf-figure { justify-self: center; width: 100%; }
.sf-cs[data-project="pickme"] #shipped .sf-split--fit > .sf-figure figcaption { text-align: center; }
@media (max-width: 899px) {
  .sf-cs[data-project="pickme"] #shipped .sf-split--fit { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .sf-cs[data-project="pickme"] #shipped .sf-split--fit > .sf-figure { max-width: 320px !important; }
}

/* PickMe pages · one card text rhythm: same title size, weight and gap to the description
   in journey cards and design-logic rows. */
.sf-cs[data-project="pickme"] :is(.sf-journey__copy, .sf-feature-diagram li > div) { display: grid; gap: 8px; align-content: start; }
.sf-cs[data-project="pickme"] :is(.sf-journey__copy, .sf-feature-diagram li > div) strong { font-size: 1rem; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.sf-cs[data-project="pickme"] :is(.sf-journey__copy, .sf-feature-diagram li > div) p { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--sf-text-2); text-wrap: pretty; }
.sf-cs[data-project="pickme"] .sf-feature-diagram li { align-items: center; }

/* PickMe pages · section leads get a slightly wider measure. */
.sf-cs[data-project="pickme"] .sf-section__head .sf-lead { max-width: 62ch; }

/* HDFC · process galleries: the screens are 2:1, so the tiles are too. Each image fills
   its tile on one light canvas (transparent exports match the white screenshots), and
   the enlarge control still opens the full image. */
.sf-cs[data-project="hdfc"] .sf-process-gallery .sf-figure__frame {
  display: block;
  height: auto;
  aspect-ratio: 2 / 1;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #f7f8fb;
}
.sf-cs[data-project="hdfc"] .sf-process-gallery .sf-figure__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.sf-cs[data-project="hdfc"] .sf-process-gallery .sf-figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-ink) 10%, transparent);
  pointer-events: none;
}
.sf-cs[data-project="hdfc"] .sf-process-gallery .sf-zoom { z-index: 2; }
@media (max-width: 760px) {
  .sf-cs[data-project="hdfc"] .sf-process-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Design systems · Part 1 hero: a live button inventory. Loose: every button as found.
   Grouped: the same twelve buttons in three intent columns with one style each.
   assets/js/site.js moves them between layouts with FLIP (transform only). */
.sf-design-preview .sf-preview-stage--live { display: grid; height: auto; min-height: clamp(420px, 42vw, 560px); padding: clamp(14px, 2vw, 24px); }
.sf-audit {
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 22px 44px -28px rgba(15, 23, 42, .45);
  color: #0f172a;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.sf-audit__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sf-audit__title { display: inline-flex; align-items: center; gap: 8px; color: #334155; font-size: 13px; font-weight: 650; }
.sf-audit__title i { color: #64748b; }
.sf-audit__state { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 550; transition: background-color .4s ease, color .4s ease; }
.sf-audit__state b { color: #0f172a; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.sf-audit[data-mode="grouped"] .sf-audit__state { background: #dcfce7; color: #166534; }
.sf-audit[data-mode="grouped"] .sf-audit__state b { color: #14532d; }

.sf-audit__set { display: flex; flex-wrap: wrap; align-content: safe center; justify-content: center; gap: 12px; min-height: 0; }
.sf-audit__col { display: none; }
.sf-audit__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--bd);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: var(--deco);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: background-color .45s ease, color .45s ease, border-radius .45s ease, box-shadow .45s ease;
}
.sf-audit[data-mode="grouped"] .sf-audit__set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: safe center; gap: 10px 18px; }
.sf-audit[data-mode="grouped"] .sf-audit__col { display: block; grid-column: var(--col); grid-row: 1; padding-bottom: 4px; border-bottom: 1px solid #e2e8f0; color: #475569; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; animation: audit-head .4s ease .3s both; }
.sf-audit[data-mode="grouped"] .sf-audit__btn { grid-column: var(--col); grid-row: var(--row); border-radius: 10px; text-decoration: none; }
.sf-audit[data-mode="grouped"] .sf-audit__btn[data-intent="commit"] { background: #1d4ed8; color: #fff; box-shadow: none; }
.sf-audit[data-mode="grouped"] .sf-audit__btn[data-intent="destroy"] { background: #b91c1c; color: #fff; box-shadow: none; }
.sf-audit[data-mode="grouped"] .sf-audit__btn[data-intent="back"] { background: #fff; color: #111827; box-shadow: inset 0 0 0 1px #6b7280; }
@keyframes audit-head { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@container (max-width: 460px) {
  .sf-audit__set { gap: 8px; }
  .sf-audit__btn { min-height: 32px; padding: 0 9px; font-size: 11.5px; }
  .sf-audit[data-mode="grouped"] .sf-audit__set { gap: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-audit__btn, .sf-audit__state { transition: none; }
  .sf-audit__col { animation: none !important; }
}

/* HDFC · public signals under the route map: source links sit at the foot of each card. */
.sf-cs[data-project="hdfc"] #problem .sf-points .sf-point__foot { margin-top: auto; padding-top: 10px; }
.sf-cs[data-project="hdfc"] #problem .sf-points .sf-point__foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--sf-accent-ink); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.sf-cs[data-project="hdfc"] #problem .sf-points .sf-point__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-cs[data-project="hdfc"] #problem .sf-points .sf-point__foot a:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 3px; border-radius: 4px; }
.sf-cs[data-project="hdfc"] #problem .sf-points .sf-point__body { display: flex; flex-direction: column; height: 100%; }
.sf-cs[data-project="hdfc"] #problem .sf-block > .sf-process-note + .sf-points { margin-top: var(--cs-gap-sm, 16px); }

/* Design placeholder (c.designSlot): marks where a supplied design goes and which file
   to add. Replaced automatically by the real figure once the file exists. */
.sf-design-slot { margin: 0; min-width: 0; }
.sf-design-slot__frame {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  aspect-ratio: var(--slot-ratio, 16 / 10);
  padding: 24px;
  border: 1.5px dashed color-mix(in srgb, var(--sf-accent) 45%, var(--sf-line-strong));
  border-radius: var(--cs-r, 24px);
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--sf-ink) 3%, transparent) 0 12px, transparent 12px 24px),
    color-mix(in srgb, var(--sf-ink) 3%, var(--sf-bg));
  text-align: center;
}
.sf-design-slot__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: var(--sf-accent-soft); color: var(--sf-accent-on-soft, var(--sf-accent-ink)); font-size: 1.25rem; }
.sf-design-slot__frame strong { color: var(--sf-ink); font-size: 1rem; }
.sf-design-slot__title { max-width: 42ch; color: var(--sf-text-2); font-size: .875rem; line-height: 1.5; }
.sf-design-slot__file { margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--sf-ink) 7%, transparent); color: var(--sf-muted); font-size: .75rem; word-break: break-all; }
.sf-design-slot figcaption { padding-top: 12px; color: var(--sf-text-2); font-size: .875rem; line-height: 1.6; }
.sf-design-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--cs-gap, 24px); }


/* ==========================================================================
   PickMe overview (case-study-zero-hero). Moved from the page's inline <style> so the
   generator owns it; scoped to the parent article so feature pages are unaffected.
   ========================================================================== */
/* PickMe story polish: calm image frames, a soft transition into results, and a one-time closing quote. */
.sf-cs--parent[data-project="pickme"] .sf-process-gallery .sf-figure__frame { border-radius: var(--cs-r); }
/* Field research: three tiles of one 5:4 shape; each image fills its tile edge to edge,
   clipped to the rounded corners. Enlarge opens the full image. */
.sf-cs--parent[data-project="pickme"] #research .sf-process-gallery .sf-figure__frame { display: block; height: auto; aspect-ratio: 5 / 4; padding: 0; overflow: hidden; isolation: isolate; }
.sf-cs--parent[data-project="pickme"] #research .sf-process-gallery .sf-figure__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; clip-path: none; }
.sf-cs--parent[data-project="pickme"] #research .sf-process-gallery .sf-figure__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-ink) 10%, transparent); pointer-events: none; }
.sf-cs--parent[data-project="pickme"] #research .sf-process-gallery .sf-zoom { z-index: 2; }
@media (max-width: 760px) { .sf-cs--parent[data-project="pickme"] #research .sf-process-gallery { grid-template-columns: minmax(0, 1fr); } }
.sf-cs--parent[data-project="pickme"] #design .sf-process-gallery .sf-figure__frame { background: linear-gradient(145deg, color-mix(in srgb, var(--sf-ink) 5%, transparent), color-mix(in srgb, var(--sf-ink) 1.5%, transparent) 64%), var(--cs-glass); }
.sf-cs--parent[data-project="pickme"] #design .sf-process-gallery figure:last-child .sf-figure__frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* Closing pull-quote (PickMe and HDFC): aligned to the card grid, an accent edge and a large quote mark,
   with the takeaway set large. */
.sf-cs--parent:is([data-project="pickme"], [data-project="hdfc"]) .sf-closing-note {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px clamp(18px, 2.4vw, 32px);
  margin: var(--cs-gap) 0 0;
  padding: clamp(28px, 3.6vw, 44px) clamp(24px, 4vw, 52px);
  border-left: 4px solid var(--sf-accent);
  border-radius: var(--cs-r);
  background:
    radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--sf-accent) 13%, transparent), transparent 60%),
    var(--cs-glass, var(--sf-surface));
  box-shadow: var(--cs-rim, none);
  font-size: inherit;
}
.sf-cs--parent:is([data-project="pickme"], [data-project="hdfc"]) .sf-closing-note::before {
  content: "“";
  grid-row: 1 / span 2;
  color: var(--sf-accent);
  font: 700 clamp(4rem, 3rem + 3vw, 6rem)/.8 Georgia, "Times New Roman", serif;
  margin-top: 4px;
}
.sf-cs--parent:is([data-project="pickme"], [data-project="hdfc"]) .sf-closing-note__label {
  color: var(--sf-accent-ink);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sf-cs--parent:is([data-project="pickme"], [data-project="hdfc"]) .sf-closing-note p {
  margin: 0;
  max-width: 60ch;
  color: var(--sf-ink);
  font-size: clamp(1.25rem, 1.05rem + .75vw, 1.625rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .sf-cs--parent:is([data-project="pickme"], [data-project="hdfc"]) .sf-closing-note { grid-template-columns: minmax(0, 1fr); }
  .sf-cs--parent:is([data-project="pickme"], [data-project="hdfc"]) .sf-closing-note::before { grid-row: auto; font-size: 3.5rem; margin-bottom: -8px; }
}
.sf-cs--parent[data-project="pickme"] #role .sf-process-spread .sf-figure__frame { height: clamp(210px, 22vw, 270px); }
.sf-cs--parent[data-project="pickme"] #role .sf-process-spread .sf-svg-inline { width: min(100%, 320px); max-height: 235px; }
.sf-cs--parent[data-project="pickme"] #parts li:nth-child(3) .sf-preview-stage img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .sf-cs--parent[data-project="pickme"] #role .sf-process-spread .sf-figure__frame { height: 230px; } }
/* Starting point: the chart beside a cause tree, so the right column carries the
   "three different problems" instead of leaving empty space under two paragraphs. */
.sf-cs--parent[data-project="pickme"] #problem .sf-process-spread { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.sf-cs--parent[data-project="pickme"] #problem .pickme-trends { display: flex; flex-direction: column; }
.sf-cs--parent[data-project="pickme"] #problem .pickme-trends > svg { margin-block: auto; padding-block: 14px 8px; }
.sf-cs--parent[data-project="pickme"] #problem .pickme-trends__legend strong { font-size: .8125rem; }
.sf-cs--parent[data-project="pickme"] #problem .pickme-trends__legend small,
.sf-cs--parent[data-project="pickme"] #problem .pickme-trends p { font-size: .75rem; }
.pickme-trends__key { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--sf-text-2) !important; }
.pickme-trends__key span { display: inline-flex; align-items: center; gap: 8px; }
.pickme-trends__key i { width: 22px; height: 0; border-top: 2px solid currentColor; opacity: .8; }
.pickme-trends__key i.is-dashed { border-top-style: dashed; }

.pickme-causes { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pickme-causes__lead { margin: 0; color: var(--sf-text); font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.pickme-causes__tree { position: relative; display: grid; gap: 14px; }
.pickme-causes__root { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin: 0; padding: 10px 16px 10px 12px; border-radius: 14px; background: var(--sf-accent-soft); color: var(--sf-accent-on-soft); font-weight: 650; font-size: .95rem; line-height: 1.25; }
.pickme-causes__root i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--sf-accent) 22%, transparent); font-size: 1rem; }
.pickme-causes__root small { display: block; margin-bottom: 2px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pickme-causes__list { position: relative; display: grid; gap: 12px; margin: 0; padding: 0 0 0 44px; list-style: none; }
/* Dotted trunk from the event down to the last cause, with a tick into each card. */
.pickme-causes__list::before { content: ""; position: absolute; left: 27px; top: -14px; height: 48px; border-left: 2px dotted color-mix(in srgb, var(--sf-accent) 70%, transparent); }
.pickme-causes__list > li:not(:last-child)::after { content: ""; position: absolute; left: -17px; top: 34px; bottom: -46px; border-left: 2px dotted color-mix(in srgb, var(--sf-accent) 70%, transparent); }
.pickme-causes__list > li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--cs-glass, var(--sf-surface)); box-shadow: var(--cs-rim, none); }
.pickme-causes__list > li::before { content: ""; position: absolute; left: -17px; top: 34px; width: 17px; border-top: 2px dotted color-mix(in srgb, var(--sf-accent) 70%, transparent); }
.pickme-causes__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sf-accent-soft); color: var(--sf-accent-on-soft); font-size: 1.1rem; }
.pickme-causes__body { display: grid; gap: 4px; min-width: 0; }
.pickme-causes__body strong { color: var(--sf-ink); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.pickme-causes__body p { margin: 0; color: var(--sf-text-2); font-size: .875rem; line-height: 1.55; text-wrap: pretty; }
.pickme-causes__body a { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 28px; color: var(--sf-accent-ink); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.pickme-causes__body a i { transition: transform .2s ease; }
.pickme-causes__body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pickme-causes__body a:hover i, .pickme-causes__body a:focus-visible i { transform: translateX(3px); }
.pickme-causes__body a:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 3px; border-radius: 4px; }
.pickme-causes__note { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding-top: 18px; border-top: 1px solid var(--sf-line); color: var(--sf-text-2); font-size: .9375rem; line-height: 1.6; }
.pickme-causes__note i { flex: none; margin-top: 2px; color: var(--sf-accent-ink); font-size: 1.1rem; }
@media (max-width: 1100px) {
  .sf-cs--parent[data-project="pickme"] #problem .sf-process-spread { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pickme-causes__body a i { transition: none; } }
@media (prefers-reduced-motion: reduce) { .sf-cs--parent[data-project="pickme"] svg #Frame_29, .sf-cs--parent[data-project="pickme"] svg #Rectangle_3 { animation: none !important; } }
/* Field research collage: keep the driver photo in view when the 5:4 tile crops it. */
.sf-cs--parent[data-project="pickme"] #research .sf-process-gallery .sf-figure:first-child .sf-figure__frame img { object-position: left center; }

/* Context frame under every case-study hero (c.brief): challenge → direction → outcome on a
   project, project challenge → this part → direction on a feature study. Same surface,
   radius and spacing tokens as the meta band; the final step carries the accent. */
.sf-cs > .sf-hero .sf-brief { margin-top: var(--sf-space-4); }
.sf-brief__label { margin: 0 0 var(--sf-space-2); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-muted); }
.sf-brief__flow { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--sf-space-2); margin: 0; counter-reset: sf-brief; }
.sf-brief__step { position: relative; margin: 0; padding: var(--sf-space-3); border-radius: 20px; background: var(--sf-surface); box-shadow: inset 0 1px 0 var(--sf-glass-edge); }
.sf-brief__step:last-child { background: linear-gradient(145deg, color-mix(in srgb, var(--sf-accent) 12%, transparent), transparent 75%), var(--sf-surface); }
/* Connector arrow between cards: a small glass disc with a chevron, a real element inside each
   card (not a pseudo-element), centred in the gap (right: -gap/2, then translate 50%) and on the
   card's vertical middle. Earlier cards stack above later ones, so it never slips behind the next. */
:root { --sf-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.6 2.4 8.2 6 4.6 9.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sf-brief__step, .sf-paths__cell, .sf-cs .sf-feature-diagram > ol > li { position: relative; z-index: calc(10 - var(--i, 0)); }
.sf-flow-arrow {
  position: absolute; z-index: 5; top: 50%; right: calc(var(--sf-gap, 16px) / -2);
  width: 26px; height: 26px; border-radius: 50%; transform: translate(50%, -50%); pointer-events: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--lg-rim-top, #fff) 45%, transparent), transparent 62%), var(--sf-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sf-accent) 38%, transparent), inset 0 1px 0 var(--lg-rim-top, #fff), 0 6px 14px -8px rgb(0 0 0 / .45);
}
.sf-flow-arrow::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  background: var(--sf-accent-ink); -webkit-mask: var(--sf-chev) center / contain no-repeat; mask: var(--sf-chev) center / contain no-repeat;
}
.sf-brief__flow { --sf-gap: var(--sf-space-2); }
.sf-cs .sf-feature-diagram > ol { --sf-gap: var(--cs-gap, 24px); }
/* Stacked steps: the arrow points down, centred between the cards. */
@media (max-width: 859px) {
  .sf-cs .sf-feature-diagram .sf-flow-arrow { top: auto; right: auto; left: 50%; bottom: calc(var(--sf-gap) / -2); transform: translate(-50%, 50%); }
  .sf-cs .sf-feature-diagram .sf-flow-arrow::after { transform: rotate(90deg); }
}
.sf-brief__step dt { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-brief__step dt .bi { font-size: .95rem; }
.sf-brief__step dd { margin: 10px 0 0; font-size: .95rem; line-height: 1.6; color: var(--sf-ink); }
.sf-brief__shows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--sf-space-2) 0 0; }
.sf-brief__shows-k { margin-right: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-muted); }
@media (max-width: 860px) {
  .sf-brief__flow { grid-template-columns: minmax(0, 1fr); }
  .sf-brief__step .sf-flow-arrow { top: auto; right: auto; left: 50%; bottom: calc(var(--sf-gap) / -2); transform: translate(-50%, 50%); }
  .sf-brief__step .sf-flow-arrow::after { transform: rotate(90deg); }
  .sf-brief__step { padding: 20px; }
}
@media print { .sf-brief__step { background: none; box-shadow: none; border: 1px solid #ccc; } .sf-brief__step::before, .sf-brief__step::after { display: none; } }
/* Site map: each project carries its challenge and direction under the one-line summary. */
.sf-map-brief { display: grid; gap: 10px; margin: 14px 0 0; }
.sf-map-brief div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.sf-map-brief dt { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-map-brief dd { margin: 0; font-size: .8rem; line-height: 1.55; color: var(--sf-text); }
.sf-brief__step dd a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .sf-map-brief div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Process track (c.track): phases on a rail → technique chips → output, ending in result tiles.
   Uses the shared surface, spacing and accent tokens. Planned results are dashed. */
.sf-ptrack { margin-top: var(--sf-space-3); padding: clamp(20px, 2.6vw, 32px); border-radius: 24px; background: var(--sf-surface); box-shadow: inset 0 1px 0 var(--sf-glass-edge); }
.sf-ptrack__label { margin: 0 0 var(--sf-space-3); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-muted); }
.sf-ptrack__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); gap: var(--sf-space-3); align-items: start; }
.sf-ptrack__rail { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--sf-space-2); margin: 0; padding: 0; list-style: none; }
.sf-ptrack__rail::before {
  content: ""; position: absolute; top: 19px; left: 20px; right: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sf-accent), color-mix(in srgb, var(--sf-accent-2, var(--sf-accent)) 70%, transparent));
  opacity: .5; transform-origin: left; animation: sf-ptrack-draw 1.2s var(--sf-liquid-ease) both;
}
.sf-ptrack__phase { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; }
.sf-ptrack__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 14px;
  background: color-mix(in srgb, var(--sf-accent) 16%, var(--sf-bg, #fff)); color: var(--sf-accent-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-bg, #fff) 85%, transparent); font-size: 1.05rem;
  animation: sf-ptrack-pop .5s var(--sf-liquid-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}
html.dark .sf-ptrack__node { background: color-mix(in srgb, var(--sf-accent) 24%, #11141b); box-shadow: 0 0 0 4px #0d1016; }
.sf-ptrack__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-ptrack__n { color: var(--sf-muted); font-variant-numeric: tabular-nums; }
.sf-ptrack__when { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--sf-accent) 12%, transparent); font-size: .62rem; letter-spacing: .06em; color: var(--sf-accent-ink); }
.sf-ptrack__title { margin: 0; font-size: .95rem; font-weight: 650; line-height: 1.35; color: var(--sf-ink); text-wrap: balance; }
.sf-ptrack__tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.sf-ptrack__tech li { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--sf-ink) 7%, transparent); font-size: .72rem; font-weight: 550; line-height: 1.35; color: var(--sf-text); }
.sf-ptrack__out { display: flex; gap: 6px; margin: 2px 0 0; font-size: .8rem; line-height: 1.45; color: var(--sf-ink); }
.sf-ptrack__out .bi { flex: none; margin-top: 1px; color: var(--sf-accent-ink); }
.sf-ptrack__results { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-ptrack__result {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--sf-accent) 22%, transparent), color-mix(in srgb, var(--sf-accent) 6%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 30%, transparent);
}
.sf-ptrack__result.is-plan { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--sf-accent-ink) 55%, transparent); }
.sf-ptrack__result-k { display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-ptrack__result strong { font-size: clamp(1.35rem, 1rem + .9vw, 1.85rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--sf-ink); font-variant-numeric: tabular-nums; }
.sf-ptrack__result > span:last-child { font-size: .78rem; line-height: 1.45; color: var(--sf-text); }
.sf-ptrack--compact .sf-ptrack__rail::before { top: 17px; }
.sf-ptrack--compact .sf-ptrack__node { width: 36px; height: 36px; border-radius: 12px; font-size: .95rem; }
@keyframes sf-ptrack-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sf-ptrack-pop { from { transform: scale(.6); } to { transform: scale(1); } }
@media (max-width: 1100px) { .sf-ptrack__body { grid-template-columns: minmax(0, 1fr); } .sf-ptrack__results { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
@media (max-width: 760px) {
  .sf-ptrack__rail { grid-template-columns: minmax(0, 1fr); gap: var(--sf-space-3); }
  .sf-ptrack__rail::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; transform-origin: top; animation-name: sf-ptrack-draw-y; }
  .sf-ptrack--compact .sf-ptrack__rail::before { left: 17px; }
  .sf-ptrack__phase { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
  .sf-ptrack__phase > :not(.sf-ptrack__node) { grid-column: 2; }
  .sf-ptrack__node { grid-row: 1 / span 4; margin: 0; }
}
@keyframes sf-ptrack-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sf-ptrack__rail::before, .sf-ptrack__node { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .sf-ptrack { background: var(--sf-bg, #fff); } }
@media (forced-colors: active) { .sf-ptrack__result, .sf-ptrack__node { border: 1px solid CanvasText; } .sf-ptrack__rail::before { background: CanvasText; } }
@media print { .sf-ptrack { background: none; border: 1px solid #ccc; } .sf-ptrack__rail::before, .sf-ptrack__node { animation: none; } }

/* Case-study insight and principle cards share one card treatment: four columns, the same
   padding, radius, edge and type scale. The principle number is a plain label, so it no longer
   re-enables the glass layer's ::before (which drew a ghost card behind each principle). */
.sf-cs .sf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sf-space-grid, 24px); }
.sf-cs .sf-principles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sf-space-grid, 24px); }
.sf-cs .sf-principles li {
  padding: 28px; border-radius: 24px;
  box-shadow: var(--sf-surface-shadow), inset 0 1px 0 var(--sf-glass-edge), inset 0 0 0 1px color-mix(in srgb, var(--sf-ink) 4%, transparent);
}
.sf-cs .sf-principles h3 { font-size: 1.125rem; line-height: 1.35; text-wrap: balance; }
.sf-cs .sf-principles p { margin-top: 10px; font-size: .9rem; line-height: 1.6; }
.sf-cs .sf-insight h3 { font-size: 1.125rem; line-height: 1.35; }
@media (max-width: 1100px) { .sf-cs .sf-grid--4, .sf-cs .sf-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sf-cs .sf-grid--4, .sf-cs .sf-principles { grid-template-columns: minmax(0, 1fr); } }

/* Path map (c.pathMap): the project overview as a hub. The challenge is the root; a spine
   branches to one row per study (situation → insight → direction → study link). */
.sf-paths__map { position: relative; }
.sf-paths__root {
  position: relative; z-index: 1; max-width: 760px; padding: 20px 24px; border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--sf-accent) 16%, transparent), transparent 80%), var(--sf-surface);
  box-shadow: inset 0 1px 0 var(--sf-glass-edge), inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 22%, transparent);
}
.sf-paths__root p { margin: 8px 0 0; font-size: 1rem; line-height: 1.55; color: var(--sf-ink); font-weight: 550; }
.sf-paths__k { display: inline-flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-paths__k .bi { font-size: .85rem; }
.sf-paths__rows { --sf-line-c: color-mix(in srgb, var(--sf-accent) 40%, transparent); --sf-spine: 21px; --sf-indent: 44px; display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.sf-paths__row { --sf-gap: 12px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 230px); gap: var(--sf-gap); align-items: stretch; padding-left: var(--sf-indent); }
/* Spine: each row draws its own segment, from the gap above to its bottom; the first reaches up to
   the challenge, the last stops at its own centre. The branch and node sit on the row's centre. */
.sf-paths__row::before { content: ""; position: absolute; left: var(--sf-spine); top: -14px; bottom: 0; width: 2px; background: var(--sf-line-c); }
.sf-paths__row:first-child::before { top: -18px; }
.sf-paths__row:last-child::before { bottom: 50%; }
.sf-paths__row::after { content: ""; position: absolute; left: var(--sf-spine); top: 50%; width: calc(var(--sf-indent) - var(--sf-spine)); height: 2px; transform: translateY(-50%); background: var(--sf-line-c); }
.sf-paths__node { position: absolute; z-index: 1; left: calc(var(--sf-spine) + 1px); top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--sf-bg); box-shadow: inset 0 0 0 2px var(--sf-accent); }
.sf-paths__cell { position: relative; padding: 16px 18px; border-radius: 16px; background: var(--sf-surface); box-shadow: inset 0 1px 0 var(--sf-glass-edge); }
.sf-paths__cell p { margin: 8px 0 0; font-size: .86rem; line-height: 1.55; color: var(--sf-ink); }
.sf-page .sf-paths__go {
  display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--sf-ink);
  background: linear-gradient(150deg, color-mix(in srgb, var(--sf-accent) 24%, transparent), color-mix(in srgb, var(--sf-accent) 7%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 32%, transparent);
  transition: transform .3s var(--sf-liquid-ease), box-shadow .3s var(--sf-liquid-ease);
}
.sf-page .sf-paths__go.is-plan { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--sf-accent-ink) 55%, transparent); }
.sf-page .sf-paths__go:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 55%, transparent), 0 14px 30px -22px color-mix(in srgb, var(--sf-accent) 80%, transparent); }
.sf-page .sf-paths__go:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 3px; }
.sf-paths__part { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-paths__go strong { margin-top: 4px; font-size: 1.35rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sf-paths__result { font-size: .74rem; line-height: 1.4; color: var(--sf-text); }
.sf-paths__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .78rem; font-weight: 650; color: var(--sf-accent-ink); }
.sf-paths__go:hover .sf-paths__cta .bi { transform: translateX(3px); }
.sf-paths__cta .bi { transition: transform .25s var(--sf-liquid-ease); }
.sf-insight__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 650; color: var(--sf-accent-ink); text-decoration: none; }
.sf-insight__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .sf-paths__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-paths__cell--last .sf-flow-arrow { display: none; }
  /* The row wraps, so its centre no longer meets a card: anchor the branch to the first label. */
  .sf-paths__row::after, .sf-paths__node { top: 30px; }
  .sf-paths__row:last-child::before { bottom: calc(100% - 30px); }
  .sf-page .sf-paths__go { grid-column: 1 / -1; grid-template-columns: auto auto 1fr auto; align-items: baseline; column-gap: 12px; }
  .sf-paths__go strong { margin: 0; font-size: 1.1rem; }
  .sf-paths__cta { margin: 0; justify-self: end; }
}
@media (max-width: 760px) {
  .sf-paths__rows { --sf-spine: 12px; --sf-indent: 30px; }
  .sf-paths__row { grid-template-columns: minmax(0, 1fr); --sf-gap: 8px; }
  .sf-paths__cell .sf-flow-arrow { display: none; }
  .sf-page .sf-paths__go { grid-template-columns: minmax(0, 1fr); }
  .sf-paths__cta { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .sf-page .sf-paths__go, .sf-paths__cta .bi { transition: none; } .sf-page .sf-paths__go:hover { transform: none; } }
@media (forced-colors: active) { .sf-paths__cell, .sf-paths__root, .sf-page .sf-paths__go { border: 1px solid CanvasText; } .sf-paths__row::before, .sf-paths__row::after { background: CanvasText; } .sf-paths__node, .sf-flow-arrow { box-shadow: 0 0 0 1px CanvasText; } .sf-flow-arrow::after { background: CanvasText; } }

/* Breadcrumb mega menu: this case study in one column; more projects in a two-column grid
   on a soft tonal panel. Fits without scrolling on desktop. */
.sf-crumb-menu__panel.sf-mega {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: 10px;
  width: min(780px, calc(100vw - 40px)); max-height: none; overflow: visible; padding: 12px;
}
.sf-mega ul { display: grid; gap: 2px; margin: 0; padding: 0 4px 4px; list-style: none; }
.sf-mega .sf-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-mega__col--more { border-radius: 16px; background: color-mix(in srgb, var(--sf-ink) 4%, transparent); }
.sf-page .sf-mega a { align-items: center; min-height: 48px; padding: 10px 12px; }
.sf-mega a > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sf-mega a strong { font-size: .82rem; font-weight: 620; line-height: 1.3; color: var(--sf-ink); }
.sf-mega a small { font-size: .7rem; line-height: 1.3; color: var(--sf-muted); }
.sf-mega a .bi { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--sf-accent) 14%, transparent); font-size: .9rem; }
.sf-mega__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--sf-accent) 14%, transparent); color: var(--sf-accent-ink); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-mega a[aria-current] :is(strong, small) { color: var(--sf-accent-on-soft); }
.sf-mega a[aria-current] :is(.bi, .sf-mega__n) { background: color-mix(in srgb, var(--sf-accent) 26%, transparent); }
@media (max-width: 1000px) {
  .sf-crumb-menu__panel.sf-mega { grid-template-columns: minmax(0, 1fr); max-height: min(75vh, 640px); overflow: auto; }
}
@media (max-width: 420px) { .sf-mega .sf-mega__grid { grid-template-columns: minmax(0, 1fr); } }
/* The mega menu sits inside the breadcrumb list: reset the crumb item layout and separators. */
.sf-crumbs .sf-mega li { display: block; }
.sf-crumbs .sf-mega li + li::before { content: none; display: none; }

/* Bare hero: the artwork floats on the page with no tinted stage behind it (feature-previews `bare`). */
.sf-design-preview--bare .sf-preview-stage { background:none; padding:0; box-shadow:none; border:0; }
.sf-design-preview--bare .sf-preview-stage::before,
.sf-design-preview--bare .sf-preview-stage::after { content:none; }
.sf-design-preview--bare .sf-preview-stage > .sf-svg-inline { filter:drop-shadow(0 18px 32px rgb(0 0 0 / .28)); }

/* Mega menu, calmer "More projects": no boxed fill, a hairline divider, a wider panel so titles
   stay on one line, equal-height rows, one icon per project and a short footer. */
.sf-crumb-menu__panel.sf-mega { width: min(860px, calc(100vw - 40px)); grid-template-columns: minmax(0, .8fr) minmax(0, 1.75fr); gap: 0; }
.sf-mega__col--more { display: flex; flex-direction: column; margin-left: 12px; padding-left: 12px; border-radius: 0; background: none; border-left: 1px solid var(--sf-line); }
.sf-mega .sf-mega__grid { grid-auto-rows: 1fr; column-gap: 4px; }
.sf-mega__grid strong { white-space: nowrap; }
.sf-mega__foot { display: flex; gap: 4px; margin: auto 0 0; padding: 10px 4px 2px; border-top: 1px solid var(--sf-line); }
.sf-page .sf-mega__foot a { min-height: 40px; padding: 8px 12px; font-size: .76rem; font-weight: 600; color: var(--sf-text); }
.sf-mega__foot a .bi { width: auto; height: auto; background: none; font-size: .85rem; }
@media (max-width: 1000px) {
  .sf-mega__col--more { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--sf-line); }
  .sf-mega__grid strong { white-space: normal; }
}
/* Trip request hero, bare in dark mode: the rider pin is drawn #111827, so lift it to the page ink. */
html.dark .sf-design-preview--bare #Group_20 path { fill: var(--sf-ink); }

:root { --lg-rim-top: rgba(255, 255, 255, .95); --lg-rim-base: rgba(15, 23, 42, .07); }
html.dark { --lg-rim-top: rgba(255, 255, 255, .3); --lg-rim-base: rgba(255, 255, 255, .045); }
/* ==========================================================================
   Liquid glass, everywhere it fits. One recipe for every card-like surface:
   · a gradient rim (bright top-left → faint → soft lower edge) drawn on a masked ::before,
     with a rim light that follows the pointer (--sf-mx / --sf-my, set by site.js);
   · a specular sheen and a soft top-left gloss on ::after, behind the content;
   · backdrop blur on the larger panels.
   Surfaces whose ::before/::after already do other work (connectors, pager arrows, the
   takeaway quote mark) get the same rim as inset edges instead. Backgrounds are untouched,
   so each component keeps its own fill and accent tint, and text contrast is unchanged.
   ========================================================================== */
.sf-page :is(
  .sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule,
  .sf-ptrack, .sf-ptrack__result:not(.is-plan), .sf-ptrack__node, .sf-paths__root, .sf-paths__go:not(.is-plan),
  .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li,
  .sf-crumb-menu__panel, .sf-outcome, .sf-feature, .sf-brief__step, .sf-paths__cell, .sf-cs .case-chapter > .sf-feature-diagram > ol > li, .fx-facts li,
  .sf-strategy-card, .sf-example-sheet, .sf-strategy-position, .sf-method-related, .sf-map-root,
  .sf-work-card, .sf-topic-card, .career-card, .sf-contact-panel, .sf-matrix, .sf-shift, .sf-question
) {
  --sf-mx: 50%; --sf-my: -30%; --sf-rim-on: 0;
  isolation: isolate;
  transition: --sf-rim-on .45s var(--sf-liquid-ease), transform .35s var(--sf-liquid-ease), box-shadow .35s var(--sf-liquid-ease);
}
.sf-page :is(
  .sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule,
  .sf-ptrack, .sf-ptrack__result:not(.is-plan), .sf-paths__go:not(.is-plan),
  .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li,
  .sf-outcome, .sf-feature, .fx-facts li, .sf-strategy-card, .sf-example-sheet, .sf-strategy-position,
  .sf-topic-card, .career-card
) { position: relative; }
.sf-page :is(
  .sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule,
  .sf-ptrack, .sf-ptrack__result:not(.is-plan), .sf-ptrack__node, .sf-paths__root, .sf-paths__go:not(.is-plan),
  .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li,
  .sf-crumb-menu__panel, .sf-outcome, .sf-feature, .sf-brief__step, .sf-paths__cell, .sf-cs .case-chapter > .sf-feature-diagram > ol > li, .fx-facts li,
  .sf-strategy-card, .sf-example-sheet, .sf-strategy-position, .sf-method-related, .sf-map-root,
  .sf-work-card, .sf-topic-card, .career-card, .sf-contact-panel, .sf-matrix, .sf-shift, .sf-question
):is(:hover, :focus-within, .is-lit) { --sf-rim-on: 1; }

/* The rim. */
.sf-page :is(
  .sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule,
  .sf-ptrack, .sf-ptrack__result:not(.is-plan), .sf-ptrack__node, .sf-paths__root, .sf-paths__go:not(.is-plan),
  .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li,
  .sf-crumb-menu__panel, .sf-outcome, .sf-feature, .sf-brief__step, .sf-paths__cell, .sf-cs .case-chapter > .sf-feature-diagram > ol > li, .fx-facts li,
  .sf-strategy-card, .sf-example-sheet, .sf-strategy-position, .sf-method-related, .sf-map-root,
  .sf-work-card, .sf-topic-card, .career-card, .sf-contact-panel, .sf-matrix, .sf-shift, .sf-question, .sf-continue__link
)::before {
  content: ""; display: block; position: absolute; inset: 0; z-index: 2; padding: 1px; margin: 0;
  border-radius: inherit; pointer-events: none; opacity: 1;
  background:
    radial-gradient(calc(var(--sf-rim-on) * 180px) circle at var(--sf-mx) var(--sf-my), var(--sf-rim-light), transparent 70%),
    radial-gradient(calc(var(--sf-rim-on) * 300px) circle at var(--sf-mx) var(--sf-my), color-mix(in srgb, var(--sf-accent) 70%, transparent), transparent 75%),
    linear-gradient(180deg, var(--lg-rim-top), color-mix(in srgb, var(--lg-rim-top) 30%, transparent) 26%, var(--lg-rim-base) 55%, var(--lg-rim-base));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* The sheen: a soft gloss from the top-left, plus a specular highlight that follows the pointer. */
.sf-page :is(
  .sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule,
  .sf-ptrack, .sf-ptrack__result:not(.is-plan), .sf-ptrack__node, .sf-paths__root, .sf-paths__go:not(.is-plan),
  .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li,
  .sf-crumb-menu__panel, .sf-outcome, .sf-feature, .sf-brief__step, .sf-paths__cell, .sf-cs .case-chapter > .sf-feature-diagram > ol > li, .fx-facts li,
  .sf-strategy-card, .sf-example-sheet, .sf-strategy-position, .sf-method-related, .sf-map-root,
  .sf-work-card, .sf-topic-card, .career-card, .sf-contact-panel, .sf-matrix, .sf-shift, .sf-question
)::after {
  content: ""; display: block; position: absolute; inset: 0; z-index: -1; margin: 0;
  border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(480px circle at var(--sf-mx) var(--sf-my), var(--sf-sheen), transparent 46%),
    linear-gradient(155deg, color-mix(in srgb, var(--sf-sheen) 55%, transparent), transparent 34%);
  opacity: calc(.45 + var(--sf-rim-on) * .55);
  transition: opacity .4s var(--sf-liquid-ease);
}

/* Larger panels also blur what is behind them. */
.sf-page :is(.sf-brief__step, .sf-ptrack, .sf-paths__root, .sf-paths__cell, .sf-strategy-card, .sf-strategy-position, .sf-example-sheet, .sf-map-root, .sf-contact-panel, .sf-evidence-card, .sf-rule) {
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  backdrop-filter: blur(16px) saturate(155%);
}

/* The takeaway quote keeps its quote mark on ::before, so its rim is drawn as inset edges:
   a bright top edge and a faint ring, matching the masked rim on every other card. */
.sf-page .sf-closing-note {
  box-shadow: var(--sf-surface-shadow), inset 0 1px 0 var(--lg-rim-top), inset 0 0 0 1px var(--lg-rim-base);
}

/* Principles: the number moves to the heading, so li::before can carry the rim. */
.sf-cs .sf-principles h3::before {
  content: counter(pr, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-size: var(--sf-fs-xs); font-weight: 800; letter-spacing: .06em; color: var(--sf-accent-ink);
}

@media (prefers-reduced-motion: reduce) {
  .sf-page :is(.sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule, .sf-ptrack, .sf-paths__go, .sf-strategy-card, .sf-work-card, .sf-topic-card)::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .sf-page :is(.sf-brief__step, .sf-ptrack, .sf-paths__root, .sf-paths__cell, .sf-strategy-card, .sf-strategy-position, .sf-example-sheet, .sf-map-root, .sf-contact-panel, .sf-evidence-card, .sf-rule) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active), print {
  .sf-page :is(.sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule, .sf-ptrack, .sf-ptrack__result, .sf-ptrack__node, .sf-paths__root, .sf-paths__go, .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li, .sf-crumb-menu__panel, .sf-outcome, .sf-feature, .sf-brief__step, .sf-paths__cell, .sf-cs .case-chapter > .sf-feature-diagram > ol > li, .fx-facts li, .sf-strategy-card, .sf-example-sheet, .sf-strategy-position, .sf-method-related, .sf-map-root, .sf-work-card, .sf-topic-card, .career-card, .sf-contact-panel, .sf-matrix, .sf-shift, .sf-question, .sf-continue__link)::before,
  .sf-page :is(.sf-index__row, .sf-card, .sf-point, .sf-evidence-card, .sf-rule, .sf-ptrack, .sf-ptrack__result, .sf-ptrack__node, .sf-paths__root, .sf-paths__go, .sf-problem-map, .sf-problem-map__node, .sf-walkthrough, .decision-sheet, .sf-team li, .sf-principles li, .sf-crumb-menu__panel, .sf-outcome, .sf-feature, .sf-brief__step, .sf-paths__cell, .sf-cs .case-chapter > .sf-feature-diagram > ol > li, .fx-facts li, .sf-strategy-card, .sf-example-sheet, .sf-strategy-position, .sf-method-related, .sf-map-root, .sf-work-card, .sf-topic-card, .career-card, .sf-contact-panel, .sf-matrix, .sf-shift, .sf-question)::after { display: none; }
}


/* Evidence matrix (c.evidenceMatrix) and before → after chart (c.shiftChart).
   Minimal: hairline rows, one accent, dots and short tracks; every value is also text. */
.sf-matrix, .sf-shift { margin: 0; padding: clamp(20px, 2.6vw, 32px); border-radius: 24px; background: var(--sf-surface); }
.sf-matrix__head { display: grid; gap: 6px; margin-bottom: 18px; }
.sf-matrix__title { font-size: 1.05rem; font-weight: 650; line-height: 1.35; color: var(--sf-ink); }
.sf-matrix__note { font-size: .82rem; line-height: 1.5; color: var(--sf-muted); }
.sf-matrix__scroll { overflow-x: auto; border-radius: 8px; }
.sf-matrix__scroll:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 4px; }
.sf-matrix table, .sf-shift table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sf-matrix th, .sf-matrix td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--sf-line); }
.sf-matrix thead th, .sf-shift thead th { padding-top: 0; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--sf-muted); vertical-align: bottom; }
.sf-matrix thead th a { color: var(--sf-accent-ink); text-decoration: none; }
.sf-matrix thead th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-matrix :is(thead, tbody) th:first-child { padding-left: 0; text-align: left; }
.sf-matrix tbody th { font-size: .88rem; font-weight: 600; color: var(--sf-ink); white-space: nowrap; }
.sf-matrix .sf-matrix__n { text-align: left; font-size: .8rem; color: var(--sf-text); white-space: nowrap; }
.sf-matrix tbody tr:last-child > * { border-bottom: 0; }
.sf-matrix__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; background: var(--sf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-accent) 18%, transparent); }
.sf-matrix__dot.is-plan { background: transparent; box-shadow: inset 0 0 0 2px var(--sf-accent-ink); }
.sf-matrix__none { display: inline-block; width: 4px; height: 4px; border-radius: 50%; vertical-align: middle; background: var(--sf-line-strong); }
.sf-matrix__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; font-size: .74rem; color: var(--sf-muted); }
.sf-matrix__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sf-matrix__legend .sf-matrix__dot { width: 9px; height: 9px; box-shadow: none; }
.sf-matrix__legend .sf-matrix__dot.is-plan { box-shadow: inset 0 0 0 1.5px var(--sf-accent-ink); }
.sf-matrix__src { margin-left: auto; }

.sf-shift th, .sf-shift td { padding: 16px 10px; text-align: right; vertical-align: middle; border-bottom: 1px solid var(--sf-line); }
.sf-shift tbody tr:last-child > * { border-bottom: 0; }
.sf-shift :is(thead, tbody) th:first-child { width: 36%; padding-left: 0; text-align: left; }
.sf-shift__label { display: block; font-size: .95rem; font-weight: 650; line-height: 1.35; color: var(--sf-ink); }
.sf-shift__meta { display: block; margin-top: 4px; font-size: .74rem; font-weight: 500; line-height: 1.45; color: var(--sf-muted); }
.sf-shift .sf-shift__plot { width: 40%; padding-inline: 24px; }
.sf-shift__track { position: relative; display: block; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--sf-ink) 12%, transparent); }
.sf-shift__track i { position: absolute; top: 0; left: min(var(--a), var(--b)); width: calc(max(var(--a), var(--b)) - min(var(--a), var(--b))); height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--sf-accent) 30%, transparent), var(--sf-accent)); }
.sf-shift__track.is-down i { background: linear-gradient(270deg, color-mix(in srgb, var(--sf-accent) 30%, transparent), var(--sf-accent)); }
.sf-shift__a, .sf-shift__b { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.sf-shift__a { left: var(--a); background: var(--sf-bg); box-shadow: inset 0 0 0 2px var(--sf-muted); }
.sf-shift__b { left: var(--b); background: var(--sf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-accent) 22%, transparent); }
.sf-shift__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: .66rem; color: var(--sf-muted); }
.sf-shift .sf-shift__v { width: 12%; font-size: .95rem; font-weight: 600; color: var(--sf-text); white-space: nowrap; }
.sf-shift .sf-shift__v.is-after { color: var(--sf-accent-ink); font-weight: 800; }
@media (max-width: 640px) {
  .sf-shift thead { display: none; }
  .sf-shift tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 16px 0; border-bottom: 1px solid var(--sf-line); }
  .sf-shift tbody tr:last-child { border-bottom: 0; }
  .sf-shift :is(th, td) { width: auto !important; padding: 0 !important; border: 0 !important; }
  .sf-shift tbody th { grid-column: 1 / -1; }
  .sf-shift .sf-shift__plot { padding-inline: 8px !important; }
  .sf-shift .sf-shift__v::before { content: attr(data-k); display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sf-muted); }
}
@media (forced-colors: active) { .sf-matrix__dot, .sf-shift__b { background: CanvasText; } .sf-shift__track i { background: CanvasText; } }
.sf-matrix, .sf-shift { position: relative; }
.sf-matrix__na { color: var(--sf-muted); font-size: .74rem; }

/* Stakeholder map (c.teamMap) as liquid glass: partners are small glass cards that sit above the
   dashed connectors (so a line never runs through text), and the centre is an accent-tinted glass
   panel instead of a solid white pill. Same rim recipe as every other card. */
.fx-team__node, .fx-team__center {
  isolation: isolate; border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sf-sheen) 55%, transparent), transparent 40%), var(--sf-bg);
  box-shadow: var(--sf-surface-shadow), inset 0 1px 0 var(--lg-rim-top), inset 0 0 0 1px var(--lg-rim-base);
}
.fx-team__node { padding: 14px 16px; max-width: 300px; }
.fx-team__center {
  border-radius: 22px; padding: 18px 24px; color: var(--sf-ink);
  background: linear-gradient(150deg, color-mix(in srgb, var(--sf-accent) 26%, transparent), color-mix(in srgb, var(--sf-accent) 8%, transparent)), var(--sf-bg);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--sf-accent) 70%, transparent), inset 0 1px 0 var(--lg-rim-top), inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 35%, transparent);
}
.fx-team__center strong { color: var(--sf-ink); }
.fx-team__center span { color: var(--sf-text); }
.fx-team__center .bi { color: var(--sf-accent-ink); }
@media (min-width: 860px) {
  .fx-team { gap: 22px 48px; }
  .fx-team__node--0, .fx-team__node--2 { justify-self: center; text-align: center; justify-items: center; }
  .fx-team__node--1 { justify-self: start; }
  .fx-team__node--3 { justify-self: end; }
}
/* The matrix's visually hidden labels are absolutely positioned; keep them inside the scroll box,
   or they escape it and widen the page on phones. */
.sf-matrix__scroll { position: relative; }
/* HDFC hero: the floating layers drift a few pixels past the edge on phones; clip sideways only. */
@media (max-width: 760px) { .sf-cs .sf-hx { overflow-x: clip; } }
/* Bare heroes (Trip request, Pickup) animate in from just past their edge; on phones that widened
   the page. Clip sideways only. */
@media (max-width: 760px) { .sf-design-preview--bare .sf-preview-stage { overflow-x: clip; } }
/* The problem statement follows a diagram or card row; give it the same gap as any stacked block. */
.sf-cs .sf-section > .sf-question { margin-top: var(--sf-space-content, 24px); }

/* Problem statement as liquid glass: an accent-tinted glass card (rim, pointer light and sheen come
   from the shared glass layer) instead of a solid inverted slab. Text uses the normal ink tokens. */
.sf-cs .sf-question {
  position: relative;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--sf-accent) 22%, transparent), transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--sf-accent) 9%, transparent), transparent 70%),
    var(--sf-surface);
  color: var(--sf-ink);
  box-shadow: var(--sf-surface-shadow), 0 24px 60px -40px color-mix(in srgb, var(--sf-accent) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.sf-cs .sf-question .sf-eyebrow { color: var(--sf-accent-ink); }
.sf-cs .sf-question p { color: var(--sf-ink); }
@media (prefers-reduced-transparency: reduce) { .sf-cs .sf-question { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* A sub-heading over an icon-facts row (e.g. "Constraints") gets the same 16px every other
   sub-heading has above its content. */
.sf-subhead + .fx-facts { margin-top: 16px; }

/* ==========================================================================
   Chapter opener (every case study, replacing the Situation/Task/Action/Results cards).
   An open editorial divider, not a card: a large numeral in the project's own accent gradient,
   a plain-language title and the chapter's one-sentence statement as a lead.
   ========================================================================== */
.sf-cs .chapter-opener { display: block; margin: 0; padding: 0; }
.cx-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.cx-num {
  font-size: clamp(3.6rem, 2.4rem + 4.5vw, 7rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums;
  background: linear-gradient(170deg, var(--sf-accent) 8%, color-mix(in srgb, var(--sf-accent-2, var(--sf-accent)) 55%, transparent) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--sf-accent) 30%, transparent));
}
.cx-copy h2 { margin: 0; font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; color: var(--sf-ink); }
.cx-copy p { margin: 14px 0 0; max-width: 60ch; font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); line-height: 1.62; color: var(--sf-text); }
.sf-section > .chapter-opener { margin-bottom: var(--sf-space-section); }
@media (max-width: 640px) {
  .cx-main { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cx-num { font-size: 3.2rem; }
}
@media (forced-colors: active) { .cx-num { background: none; color: CanvasText; filter: none; } }

/* ==========================================================================
   Project overview as a dossier (parents only). Parts are grouped under Situation, Task, Action
   and Results in a sticky glass navigation; each part opens with a hairline divider, a group chip,
   its number, the label and a one-line intro. Feature studies keep their chapter openers.
   ========================================================================== */
.dx-nav { position: sticky; top: 84px; z-index: 30; margin-top: var(--sf-space-4); pointer-events: none; }
.dx-nav__groups {
  pointer-events: auto; display: flex; align-items: center; gap: 6px 16px; margin: 0; padding: 6px 10px;
  list-style: none; overflow-x: auto; scrollbar-width: none; border-radius: 18px;
  background: color-mix(in srgb, var(--sf-bg) 74%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--sf-surface-shadow), inset 0 1px 0 var(--lg-rim-top), inset 0 0 0 1px var(--lg-rim-base);
}
.dx-nav__groups::-webkit-scrollbar { display: none; }
.dx-nav__group { display: flex; flex: none; align-items: center; gap: 4px; }
.dx-nav__group + .dx-nav__group { padding-left: 16px; border-left: 1px solid var(--sf-line); }
.dx-nav__g { margin-right: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-muted); }
.dx-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sf-page .dx-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--sf-text); text-decoration: none;
  transition: background .2s var(--sf-liquid-ease), color .2s var(--sf-liquid-ease);
}
.sf-page .dx-nav a:hover { background: color-mix(in srgb, var(--sf-ink) 7%, transparent); color: var(--sf-ink); }
.sf-page .dx-nav a.is-current { background: var(--sf-accent-soft); color: var(--sf-accent-on-soft); }
.sf-page .dx-nav a:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 2px; }

.sf-cs .dx-part { scroll-margin-top: 150px; }
.dx-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; gap: 10px 48px; padding-top: 28px; border-top: 1px solid var(--sf-line-strong); }
.dx-head__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dx-head__g { padding: 4px 10px; border-radius: 999px; background: var(--sf-accent-soft); color: var(--sf-accent-on-soft); }
.dx-head__n { color: var(--sf-muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.dx-head h2 { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; color: var(--sf-ink); }
.dx-head__lede { margin: 0; max-width: 54ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: var(--sf-text); }

.dx-shots { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sf-space-grid, 24px); align-items: start; }
.dx-shots__col { display: grid; gap: var(--sf-space-grid, 24px); }
.dx-shots .sf-figure { margin: 0; }

@media (max-width: 860px) {
  .dx-nav { top: 76px; }
  .dx-head { grid-template-columns: minmax(0, 1fr); }
  .dx-shots { grid-template-columns: minmax(0, 1fr); }
  .sf-page .dx-nav a { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sf-page .dx-nav a { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .dx-nav__groups { background: var(--sf-bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media print { .dx-nav { display: none; } }

/* ==========================================================================
   Dossier navigation as a side rail of dots (1200px and up; narrower screens keep the bar).
   Collapsed: a slim liquid-glass capsule centred in the right page margin, one evenly spaced
   dot per part (passed parts tinted, the current part lit). On hover or keyboard focus the
   capsule widens to the left into the grouped menu: group captions in their own column
   (Situation, Task, Action, Results) and each part label beside its dot. Rows never move, so the
   dot under the pointer stays under it. The capsule clips its own content, so nothing invisible
   sits over the page; labels stay in the accessibility tree.
   ========================================================================== */
.dx-nav__dot { display: none; }
/* Feature studies only get the rail (wide screens); below 1200px readers scroll the chapters. */
.dx-nav--rail { display: none; }
.dx-nav__n { color: var(--sf-accent-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 1200px) {
  .dx-nav--rail { display: block; }
  .dx-nav {
    --dx-w: 32px;      /* collapsed capsule width */
    --dx-panel: 328px; /* expanded menu width (fits the longest section label) */
    --dx-row: 32px;    /* one part per row: an even 32px rhythm with room to breathe */
    --dx-gap: 12px;    /* space between chapters, the same collapsed and expanded */
    position: fixed; top: 50%; right: clamp(8px, calc((100vw - 1280px) / 4 - 16px), 40px); left: auto;
    z-index: 45; margin: 0; pointer-events: auto;
    transform: translateY(-50%);
    transition: opacity .35s var(--sf-liquid-ease), transform .35s var(--sf-liquid-ease);
  }
  /* Fade the rail in once the hero has scrolled away (JS adds .is-on; without JS it simply shows).
     A keyboard user who tabs into it earlier still sees it. */
  .sf-js .dx-nav:not(.is-on):not(:focus-within) { opacity: 0; transform: translate(8px, -50%); pointer-events: none; }
  .dx-nav .sf-container { width: auto; max-width: none; margin: 0; padding: 0; }

  /* The capsule: liquid glass, clipped to its own rounded shape. Content is laid out at the
     expanded width and aligned right, so collapsing only hides the label side. */
  .sf-page .dx-nav__groups {
    --sf-mx: 50%; --sf-my: -30%; --sf-rim-on: 0;
    position: relative; isolation: isolate;
    flex-direction: column; align-items: flex-end; gap: 0;
    width: var(--dx-w); margin: 0; padding: 14px 0;
    overflow: clip; border-radius: 18px; pointer-events: inherit;
    background: color-mix(in srgb, var(--sf-bg) 68%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 16px 36px -20px rgb(15 23 42 / .5), 0 2px 8px -4px rgb(15 23 42 / .16);
    transition: width .3s var(--sf-liquid-ease), --sf-rim-on .45s var(--sf-liquid-ease);
  }
  /* The rim: bright top edge, faint sides, a soft catch-light at the foot, and a rim light that
     follows the pointer (the same recipe as every other glass card). */
  .sf-page .dx-nav__groups::before {
    content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; pointer-events: none;
    background:
      radial-gradient(calc(var(--sf-rim-on) * 140px) circle at var(--sf-mx) var(--sf-my), var(--sf-rim-light), transparent 70%),
      radial-gradient(calc(var(--sf-rim-on) * 220px) circle at var(--sf-mx) var(--sf-my), color-mix(in srgb, var(--sf-accent) 70%, transparent), transparent 75%),
      linear-gradient(165deg, var(--lg-rim-top), color-mix(in srgb, var(--lg-rim-top) 35%, transparent) 18%, var(--lg-rim-base) 50%, var(--lg-rim-base) 82%, color-mix(in srgb, var(--lg-rim-top) 45%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  /* The sheen: a gloss across the top, plus a specular highlight under the pointer. */
  .sf-page .dx-nav__groups::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background:
      radial-gradient(240px circle at var(--sf-mx) var(--sf-my), var(--sf-sheen), transparent 50%),
      linear-gradient(175deg, color-mix(in srgb, var(--sf-sheen) 75%, transparent), transparent 28%);
    opacity: calc(.55 + var(--sf-rim-on) * .45);
    transition: opacity .4s var(--sf-liquid-ease);
  }

  /* Each group: caption column, then its parts. Chapters are separated by space, not rules,
     and the gap is the same collapsed and expanded, so rows never move. */
  .dx-nav__group {
    position: relative; flex: none; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start;
    gap: 0; width: var(--dx-panel); padding-left: 20px;
  }
  .dx-nav__group + .dx-nav__group { margin-top: var(--dx-gap); padding-left: 20px; border-left: 0; }
  .dx-nav__g { margin: 0; font-size: .6rem; letter-spacing: .12em; line-height: var(--dx-row); white-space: nowrap; opacity: 0; transition: opacity .15s var(--sf-liquid-ease); }
  .dx-nav ul { flex-direction: column; gap: 0; }
  .sf-page .dx-nav a {
    display: flex; flex-direction: row-reverse; align-items: center; gap: 0;
    min-height: var(--dx-row); padding: 0; border-radius: 8px; background: none;
    color: var(--sf-text-2); font-size: .82rem; font-weight: 500;
  }
  .sf-page .dx-nav a:hover, .sf-page .dx-nav a.is-current { background: none; }
  .dx-nav__dot { display: grid; flex: none; place-items: center; width: var(--dx-w); height: var(--dx-row); }
  .dx-nav__dot::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: color-mix(in srgb, var(--sf-ink) 32%, transparent);
    transition: transform .25s var(--sf-liquid-ease), background .25s var(--sf-liquid-ease), box-shadow .25s var(--sf-liquid-ease);
  }
  .dx-nav a.is-done .dx-nav__dot::before { background: color-mix(in srgb, var(--sf-accent) 62%, transparent); }
  .dx-nav a.is-current .dx-nav__dot::before { transform: scale(1.5); background: var(--sf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-accent) 24%, transparent); }
  .dx-nav a:hover .dx-nav__dot::before { transform: scale(1.6); background: var(--sf-accent-ink); }
  .dx-nav__label {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    opacity: 0; transform: translateX(8px);
    transition: opacity .12s var(--sf-liquid-ease), transform .3s var(--sf-liquid-ease), color .2s var(--sf-liquid-ease);
  }
  .sf-page .dx-nav a:hover .dx-nav__label { color: var(--sf-ink); }
  .sf-page .dx-nav a.is-current .dx-nav__label { color: var(--sf-accent-ink); font-weight: 650; }
  .sf-page .dx-nav a:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: -2px; }

  /* Expanded: hover or keyboard focus anywhere in the rail. Opening waits a beat, so a pointer
     passing over the edge does not flick it open; closing is quicker than opening. */
  .sf-page .dx-nav:is(:hover, :focus-within) .dx-nav__groups {
    width: var(--dx-panel); --sf-rim-on: 1;
    transition: width .42s var(--sf-liquid-ease) .06s, --sf-rim-on .45s var(--sf-liquid-ease);
  }
  .dx-nav:is(:hover, :focus-within) .dx-nav__g,
  .dx-nav:is(:hover, :focus-within) .dx-nav__label { opacity: 1; transform: none; transition-delay: .14s, .14s, 0s; transition-duration: .25s, .3s, .2s; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .dx-nav, .sf-page .dx-nav .dx-nav__groups, .dx-nav__g, .dx-nav__label, .dx-nav__dot::before { transition: none !important; }
}
@media (min-width: 1200px) and (prefers-reduced-transparency: reduce) {
  .sf-page .dx-nav__groups { background: var(--sf-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (min-width: 1200px) and (forced-colors: active) {
  .sf-page .dx-nav__groups { outline: 1px solid CanvasText; outline-offset: -1px; }
  .dx-nav__dot::before, .dx-nav a.is-done .dx-nav__dot::before { background: CanvasText; }
  .dx-nav a.is-current .dx-nav__dot::before { background: Highlight; }
}

/* ==========================================================================
   Gaps, settled. Case-study components had drifted to 8, 10, 14, 16 and 20px between
   siblings. One scale now:
     12px  tiles inside a card (options, gained / cost, before / after, sorted columns)
     24px  cards beside or below each other (20px on phones, via --cs-gap)
   Diagrams whose connectors sit in the gap (problem map, journey, route lanes) and two-up
   splits keep their own spacing.
   ========================================================================== */
.sf-cs { --cs-gap-tile: 12px; }
.sf-cs :is(
  .decision-options, .fx-choice__scale, .decision-sheet .fx-choice__body,
  .a11-issue__pair, .sf-cso__board, .sf-route__panes, .sf-sort__set, .smba, .qr-trade, .v-methods__trade
) { gap: var(--cs-gap-tile); }
.sf-cs :is(
  .sf-owned, .sf-rules, .sf-reflect, .pickme-causes__list,
  .a11-why, .a11-goals, .a11-pour, .a11-layers, .a11-team,
  .as-evidence, .qr-problem, .qr-goals, .qr-moves, .qr-options, .qr-story, .qr-teams, .qr-topups,
  .smn, .smp, .smres__evidence, .smres__metrics, .smv-grid, .smx__grid, .v-methods
) { gap: var(--cs-gap); }
.sf-cs ul:has(> .a11-issue) { gap: var(--cs-gap); }
.sf-cs :is(.a11-carry, .qr-carry, .a11-layers) { margin-top: var(--cs-gap); }
@media (max-width: 859px) { .sf-cs .fx-team { gap: var(--cs-gap); } }
/* Stacked decision cards (the two-up pair keeps its row alignment from 981px). */
@media (max-width: 980px) { .sf-cs .decision-pair { gap: var(--cs-gap); } }
@media (max-width: 760px) {
  .sf-cs .sf-paths__rows { gap: var(--cs-gap); }
  .sf-cs .sf-paths__row { --sf-gap: var(--cs-gap-tile); }
}
/* A small heading always keeps a gap above the list or grid it introduces (e.g. Projects on the 404 page). */
.sf-page .sf-subhead + :is(ul, ol, .sf-grid) { margin-top: 16px; }

/* Evidence flow (site/lib/evidence-flow.mjs) ------------------------------------------------
   One quiet surface. Map: four source types → one synthesis line → decision tabs; only the
   chosen decision's wires show (the problem map's dotted, flowing line). Trace: four plain
   columns, Information → Knowledge → Insight → Result, divided by small chevrons. */
.sf-eflow { --ef-gap: 16px; position: relative; padding: clamp(20px, 3vw, 40px); border-radius: 24px; background: var(--sf-surface); box-shadow: inset 0 1px 0 var(--sf-glass-edge); }
.sf-eflow__map { position: relative; }
.sf-eflow__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.sf-eflow__wire { fill: none; stroke: var(--sf-accent-ink); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 2 6; opacity: 0; transition: opacity .35s var(--sf-liquid-ease); }
.sf-eflow__end { fill: var(--sf-accent-ink); opacity: 0; transition: opacity .35s var(--sf-liquid-ease); }
.sf-eflow__wire.is-on { opacity: .8; }
.sf-eflow__end.is-on { opacity: .9; }
@keyframes sf-eflow-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: no-preference) { .sf-eflow__wire.is-on { animation: sf-eflow-flow .9s linear infinite; } }

.sf-eflow__groups { display: grid; grid-template-columns: repeat(var(--k, 4), minmax(0, 1fr)); gap: var(--ef-gap); margin-bottom: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-muted); }
.sf-eflow__groups span { padding-left: 2px; }
.sf-eflow__sources { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--k, 4), minmax(0, 1fr)); gap: var(--ef-gap); }
.sf-eflow__src { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--sf-bg); transition: box-shadow .3s var(--sf-liquid-ease); }
.sf-eflow__src.is-on { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sf-accent) 55%, transparent); }
.sf-eflow__src-ic { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: .95rem; color: var(--sf-muted); background: var(--sf-surface); transition: color .3s, background .3s; }
.sf-eflow__src.is-on .sf-eflow__src-ic { color: var(--sf-bg); background: var(--sf-accent-ink); }
.sf-eflow__src-t { display: grid; gap: 2px; min-width: 0; }
.sf-eflow__src-t strong { font-size: .9rem; font-weight: 650; line-height: 1.35; color: var(--sf-ink); }
.sf-eflow__src-k { font-size: .62rem; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--sf-muted); }

.sf-eflow__hub { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 56px auto 0; padding: 8px 18px 8px 8px; border-radius: 999px; font-size: .88rem; line-height: 1.45; color: var(--sf-ink); background: var(--sf-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 35%, transparent); }
.sf-eflow__hub-ic { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .9rem; color: var(--sf-bg); background: var(--sf-accent-ink); }

.sf-eflow__tabs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--ef-gap); margin-top: 48px; }
.sf-eflow__tab { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px 10px 10px; border: 0; border-radius: 14px; font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.3; text-align: left; color: var(--sf-ink); background: var(--sf-bg); box-shadow: inset 0 0 0 1px var(--sf-line-strong), 0 2px 6px -3px rgb(0 0 0 / .18); cursor: pointer; transition: transform .2s var(--sf-liquid-ease), box-shadow .2s var(--sf-liquid-ease), background .2s; }
.sf-eflow__tab-t { flex: 1; min-width: 0; }
.sf-eflow__tab-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sf-text); background: var(--sf-surface); box-shadow: inset 0 0 0 1px var(--sf-line-strong); transition: background .2s, color .2s; }
.sf-eflow__tab > .bi { flex: none; font-size: .8rem; color: var(--sf-muted); transition: transform .2s var(--sf-liquid-ease), color .2s; }
.sf-eflow__tab:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sf-accent) 60%, transparent), 0 10px 22px -14px color-mix(in srgb, var(--sf-accent) 70%, #000); }
.sf-eflow__tab:hover .sf-eflow__tab-n { color: var(--sf-accent-ink); }
.sf-eflow__tab:hover > .bi { color: var(--sf-accent-ink); }
.sf-eflow__tab:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 3px; }
.sf-eflow__tab[aria-selected="true"] { cursor: default; background: linear-gradient(135deg, color-mix(in srgb, var(--sf-accent) 20%, transparent), color-mix(in srgb, var(--sf-accent) 7%, transparent)), var(--sf-bg); box-shadow: inset 0 0 0 2px var(--sf-accent-ink), 0 12px 24px -16px color-mix(in srgb, var(--sf-accent) 80%, #000); }
.sf-eflow__tab[aria-selected="true"] .sf-eflow__tab-n { color: var(--sf-bg); background: var(--sf-accent-ink); box-shadow: none; }
.sf-eflow__tab[aria-selected="true"] > .bi { color: var(--sf-accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .sf-eflow__tab:not([aria-selected="true"]):hover { transform: translateY(-2px); }
  .sf-eflow__tab:not([aria-selected="true"]):hover > .bi { transform: translateY(2px); }
  .sf-eflow__tab:not([aria-selected="true"]):active { transform: translateY(0) scale(.98); }
}

.sf-eflow__panel { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--sf-line); }
.sf-eflow__panel:focus-visible { outline: 2px solid var(--sf-accent-ink); outline-offset: 6px; border-radius: 4px; }
.sf-eflow__ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.sf-eflow__ph h3 { margin: 0; max-width: 44ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 650; line-height: 1.35; letter-spacing: -.01em; color: var(--sf-ink); }
.sf-eflow__pk { display: block; margin-bottom: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-accent-ink); }
.sf-eflow__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .84rem; font-weight: 650; color: var(--sf-accent-ink); text-decoration: none; }
.sf-eflow__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-eflow__chain { --ef-col-gap: 48px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .8fr); gap: 28px var(--ef-col-gap); }
.sf-eflow__col { position: relative; min-width: 0; }
.sf-eflow__col + .sf-eflow__col::before { content: ""; position: absolute; top: 1px; left: calc(var(--ef-col-gap) / -2 - 6px); width: 12px; height: 12px; background: var(--sf-muted); -webkit-mask: var(--sf-chev) center / contain no-repeat; mask: var(--sf-chev) center / contain no-repeat; }
.sf-eflow__col-k { margin: 0 0 14px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-muted); }
.sf-eflow__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sf-eflow__facts li { display: grid; gap: 4px; }
.sf-eflow__facts p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--sf-ink); }
.sf-eflow__cite { display: block; font-size: .74rem; line-height: 1.45; color: var(--sf-muted); }
.sf-eflow__insight { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: -.005em; color: var(--sf-ink); }
.sf-eflow__none { margin: 0; font-size: .86rem; color: var(--sf-muted); }
.sf-eflow__col--result.is-plan .sf-eflow__value { font-size: 1.05rem; letter-spacing: 0; color: var(--sf-text); }
.sf-eflow__value { display: block; margin-bottom: 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--sf-accent-ink); }

/* Without drawn wires (no script, or stacked sources): short dotted connectors. */
.sf-eflow:not(.has-wires) .sf-eflow__hub { margin-top: 40px; }
.sf-eflow:not(.has-wires) .sf-eflow__tabs { margin-top: 40px; }
.sf-eflow:not(.has-wires) .sf-eflow__hub::before,
.sf-eflow:not(.has-wires) .sf-eflow__hub::after { content: ""; position: absolute; left: 50%; height: 24px; border-left: 2px dotted var(--sf-accent-ink); opacity: .8; }
.sf-eflow:not(.has-wires) .sf-eflow__hub::before { bottom: calc(100% + 8px); }
.sf-eflow:not(.has-wires) .sf-eflow__hub::after { top: calc(100% + 8px); }

@media (max-width: 1023px) {
  .sf-eflow__chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--ef-col-gap); }
  .sf-eflow__col:nth-child(3)::before { display: none; }
}
@media (max-width: 899px) {
  .sf-eflow__groups { display: none; }
  .sf-eflow__sources, .sf-eflow__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-eflow__tabs { gap: 8px; }
}
@media (max-width: 599px) {
  .sf-eflow__sources { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sf-eflow__hub { padding-right: 14px; border-radius: 18px; }
  .sf-eflow__chain { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sf-eflow__col + .sf-eflow__col { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sf-line); }
  .sf-eflow__col + .sf-eflow__col::before { display: none; }
}
@media (prefers-reduced-transparency: reduce) { .sf-eflow { background: var(--sf-solid); } }
@media (forced-colors: active) {
  .sf-eflow__src, .sf-eflow__hub { border: 1px solid CanvasText; }
  .sf-eflow__tab[aria-selected="true"] { border: 2px solid Highlight; }
  .sf-eflow__wire { stroke: Highlight; }
  .sf-eflow__end { fill: Highlight; }
  .sf-eflow__col + .sf-eflow__col::before { background: CanvasText; }
}
@media print {
  .sf-eflow { background: none; box-shadow: none; border: 1px solid #ccc; }
  .sf-eflow__wires, .sf-eflow__tabs, .sf-eflow__col::before { display: none; }
  .sf-eflow__panel[hidden] { display: block; }
}
