/* Hand-written WorkFX case study (site/projects/workfx.ai.html). One 690px reading column, one typeface. */
@font-face { font-family: "Inter"; src: url("/_fc/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/_fc/assets/UjlFhCnUjxhNfep4oYBPqnEssyo.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/_fc/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #000;
  --body: rgba(0, 0, 0, 0.6);
  --muted: rgba(0, 0, 0, 0.42);
  --line: rgba(0, 0, 0, 0.08);
  --panel: #fafafa;
  --yellow: #fdfbd6;
  --green: #e9f8d7;
  --lilac: #e9e8fd;
  --lime: #c6e67f;
  --accent: #6b5cf0;
  --col: 690px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* chrome */
.back { position: fixed; top: 36px; left: 40px; z-index: 5; font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.back:hover { color: var(--ink); }
.toc { position: fixed; top: 120px; left: 40px; z-index: 5; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.toc a { color: rgba(0, 0, 0, 0.3); text-decoration: none; transition: color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); }
@media (max-width: 1180px) { .toc { display: none; } }

main { width: min(var(--col), calc(100% - 32px)); margin: 0 auto; padding: 96px 0 120px; }
section { margin-top: 168px; scroll-margin-top: 40px; }
section:first-child { margin-top: 0; }
.sub { margin-top: 72px; }

/* type */
.meta { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
h1 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 400; letter-spacing: -0.015em; }
.lede { margin: 14px 0 0; font-size: 15px; color: var(--body); }
.label { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.4; font-weight: 400; letter-spacing: -0.01em; }
h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.45; font-weight: 500; }
h2 u, h1 u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(0, 0, 0, 0.5); }
p { margin: 0 0 12px; color: var(--body); }
p:last-child { margin-bottom: 0; }
b, strong { color: var(--ink); font-weight: 500; }
.small { font-size: 13px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* media */
.panel { margin: 28px 0 0; background: var(--panel); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.panel.flush { padding: 0; }
.panel img, .panel video { width: 100%; height: auto; }
.panel .shot { position: relative; width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .08); background: #fff; cursor: zoom-in; }
.panel.tint { background: linear-gradient(160deg, #f3f0ff 0%, #fbfaff 60%); }
figcaption, .cap { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.panel figcaption { margin-top: 4px; }
.vid { width: 100%; background: #000; }
figure { margin: 0; }
.wide { width: min(980px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }

/* meta row */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; font-size: 14px; }
.facts span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.facts div { color: var(--ink); line-height: 1.55; }
.facts i { font-style: normal; color: var(--muted); }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); text-decoration: none; transition: border-color .2s, color .2s; }
.pill:hover { border-color: rgba(0, 0, 0, .25); color: var(--ink); }
.pill.solid { background: #eef3ff; border-color: transparent; color: #1d3f8f; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); padding: 22px 20px 24px; }
.card .n { display: block; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.card h3 { font-size: 15px; }
.card p { font-size: 14px; }
.card.y { background: var(--yellow); } .card.g { background: var(--green); } .card.l { background: var(--lilac); }
.card q { display: block; margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: rgba(0, 0, 0, .75); font-style: italic; quotes: "“" "”"; }
.card .so { padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 13px; color: rgba(0, 0, 0, .7); }
.big { display: block; margin: 0 0 8px; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }

/* callout */
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; }
.callout .ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f1efff; color: var(--accent); }
.callout h3 { margin-bottom: 4px; font-size: 14px; }
.callout p { font-size: 14px; }
.flowline { margin-top: 10px !important; font-size: 13px !important; color: var(--ink) !important; }

/* stats row */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stats div { padding: 18px 20px; background: var(--panel); }
.stats span { display: block; font-size: 12px; color: var(--muted); }
.stats b { display: block; margin: 6px 0 2px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.stats .loop { font-size: 14px; margin-top: 10px; }

/* trace: what users did vs what the system decided */
.trace { width: 100%; }
.tr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tr-g { grid-column: span var(--span); display: flex; flex-direction: column; }
.tr-act { padding: 10px 12px; background: #fff; border: 1px solid #ddd; font-size: 13px; line-height: 1.35; }
.tr-st { position: relative; display: grid; grid-template-columns: repeat(var(--span), minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.tr-st::before { content: ""; position: absolute; left: 50%; top: -20px; height: 20px; border-left: 1px dashed #c8c8c8; }
.tr-st span { min-height: 62px; padding: 10px 12px; border: 1px dashed #d4d4d4; background: #f3f3f3; font-size: 13px; color: #999; display: flex; flex-direction: column; gap: 2px; }
.tr-st em { font-style: normal; font-size: 11px; color: #b4b4b4; }
.tr-st span.seen { background: #000; border: 1px solid #000; color: #fff; }
.tr-st span.seen em, .tr-st span.seen i { color: rgba(255, 255, 255, .6); }
.tr-st i { margin-top: auto; font-style: normal; font-size: 11px; }
.tr-g:last-child .tr-st::before { border-left: 1px solid #000; }
.tr-key { display: flex; gap: 18px; margin-bottom: 14px; font-size: 12px; color: var(--muted); align-self: flex-start; }
.tr-key span { display: inline-flex; align-items: center; gap: 6px; }
.tr-key span::before { content: ""; width: 10px; height: 10px; border: 1px solid #c8c8c8; background: #fff; }
.tr-key span + span::before { border-style: dashed; background: #f3f3f3; }

/* hypothesis */
.statement { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink); }

/* reference grid */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.refs figure { display: flex; flex-direction: column; gap: 10px; }
.refs .shot { cursor: zoom-in; background: var(--panel); padding: 10px; }
.refs figcaption { margin: 0; text-align: left; font-size: 13px; line-height: 1.5; color: var(--body); }
.refs figcaption b { margin-right: 4px; }

/* HMW canvas */
.canvas { position: relative; margin-top: 32px; padding: 64px 40px; background-color: #fbfbfb; background-image: radial-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px); background-size: 14px 14px; display: grid; place-items: center; }
.frame { position: relative; max-width: 470px; padding: 30px 34px; border: 1px solid #b9b0f7; background: rgba(255, 255, 255, .7); text-align: center; font-size: 19px; line-height: 1.45; }
.frame i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid #9d92f3; }
.frame i:nth-of-type(1) { left: -4.5px; top: -4.5px; } .frame i:nth-of-type(2) { right: -4.5px; top: -4.5px; }
.frame i:nth-of-type(3) { left: -4.5px; bottom: -4.5px; } .frame i:nth-of-type(4) { right: -4.5px; bottom: -4.5px; }
.frame-tag { position: absolute; left: -1px; top: -24px; padding: 2px 6px; background: #9d92f3; color: #fff; font-size: 11px; }

/* solutions */
.sol { margin-top: 96px; }
.sol h3 { display: flex; gap: 12px; font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.sol h3 em { font-style: normal; color: var(--ink); }
.why { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--accent); font-size: 14px; }
.why span { display: block; font-size: 12px; color: var(--muted); }
.minor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.minor figure { background: var(--panel); padding: 18px; }
.minor figcaption { text-align: left; }
.minor .shot { cursor: zoom-in; box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }

/* comparison table */
.vs { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 14px; }
.vs th { padding: 0 12px 10px 0; text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.vs th b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.vs td { padding: 14px 12px 14px 0; vertical-align: top; color: var(--body); border-bottom: 1px solid var(--line); }
.vs td:first-child { width: 36px; color: var(--muted); font-size: 12px; }

/* process */
.rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.rounds a { display: block; padding: 18px 20px 20px; background: var(--panel); text-decoration: none; transition: background .2s; }
.rounds a:hover { background: #f2f2f2; }
.rounds span { display: block; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.rounds b { font-weight: 400; font-size: 15px; }

/* iterations */
.pins-legend { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pins-legend li { display: flex; gap: 10px; font-size: 14px; color: var(--body); }
.pin { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; font-style: normal; }
.shot .pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .25); }
.learn { margin-top: 24px; padding: 18px 20px; background: var(--lilac); }
.learn span { display: block; font-size: 12px; color: rgba(0, 0, 0, .5); margin-bottom: 4px; }
.learn p { color: var(--ink); font-size: 15px; }
.prev { font-size: 14px; }
.prev em { font-style: normal; color: var(--muted); margin-right: 6px; }
.quote { margin: 24px 0 0; padding-left: 16px; border-left: 2px solid var(--ink); font-size: 17px; line-height: 1.5; color: var(--ink); }
.chips { display: flex; align-items: center; gap: 14px; }
.chips .stack { display: flex; flex-direction: column; gap: 6px; }
.chips .stack span { padding: 4px 12px; border: 1px solid #ddd; background: #fff; font-size: 13px; }
.chips .arrow { color: var(--muted); }
.chips .one { padding: 10px 14px; background: #000; color: #fff; font-size: 13px; }
ul.plain { margin: 12px 0 0; padding-left: 18px; color: var(--body); }
ul.plain li { margin-bottom: 6px; }

/* V1 five layers -> V2 three stages */
.regroup { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 0; align-items: center; width: 100%; }
.regroup .col { display: flex; flex-direction: column; gap: 6px; }
.regroup .hd { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.regroup .l { padding: 8px 12px; background: #fff; border: 1px solid #e3e3e3; font-size: 13px; }
.regroup .l small { display: block; color: var(--muted); font-size: 11.5px; }
.regroup .g { border-color: #b9b0f7; }
.regroup .stage { padding: 12px; background: #fff; border: 1px solid #b9b0f7; font-size: 13px; }
.regroup .stage small { display: block; font-size: 11px; color: var(--accent); }
.regroup .stage .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.regroup .stage .tags span { padding: 1px 8px; background: #f1efff; font-size: 11px; color: #4a3fc7; }
.regroup .arr { text-align: center; color: var(--muted); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 4px; font-size: 13px; }
.ba div { padding: 10px 12px; background: #fff; }
.ba span { display: block; font-size: 11px; color: var(--muted); }

/* outcome */
.result { margin-top: 28px; padding: 44px 40px; background: var(--lime); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.result b { display: block; font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -0.04em; }
.result p { margin-top: 10px; color: rgba(0, 0, 0, .72); font-size: 14px; }

/* takeaways */
.lessons .card { background: var(--panel); }
.lessons .ic { display: block; margin-bottom: 26px; color: var(--accent); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; padding: 16px 0; font-size: 14px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 18px; font-size: 14px; }
.closing { margin-top: 64px; font-size: 19px; line-height: 1.5; color: var(--ink); }

/* next */
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.next a { display: block; padding: 18px 20px; background: var(--panel); text-decoration: none; transition: background .2s; }
.next a:hover { background: #f1f1f1; }
.next span { display: block; font-size: 12px; color: var(--muted); }
footer { width: min(var(--col), calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* placeholder */
.ph { background: rgba(255, 214, 10, .32); border-bottom: 1px dashed rgba(150, 110, 0, .7); padding: 0 2px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .82); cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 100%; background: #fff; }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 760px) {
  main { padding-top: 80px; }
  .back { top: 20px; left: 16px; background: rgba(255, 255, 255, .9); padding: 4px 8px; border-radius: 6px; }
  section { margin-top: 112px; }
  .sol { margin-top: 64px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .cards, .cards.two, .stats, .refs, .rounds, .minor, .next, .result { grid-template-columns: 1fr; }
  .panel { padding: 14px; margin-top: 20px; }
  .canvas { padding: 44px 16px; }
  .frame { font-size: 16px; padding: 22px 18px; }
  .result { padding: 28px 22px; }
  .result b { font-size: 52px; }
  .tr-grid { grid-template-columns: 1fr; gap: 8px; }
  .tr-g { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .tr-st { grid-template-columns: 1fr; gap: 6px; margin-top: 0; }
  .tr-st::before { left: -14px; top: 50%; width: 14px; height: 0; border-left: 0; border-top: 1px dashed #c8c8c8; }
  .tr-g:last-child .tr-st::before { border-top: 1px solid #000; }
  .tr-st span { min-height: 0; }
  .tr-key { flex-direction: column; gap: 6px; }
  .regroup { grid-template-columns: 1fr; gap: 10px; }
  .regroup .arr { transform: rotate(90deg); }
  .ba { grid-template-columns: 1fr; }
  .wide { width: 100%; margin-left: 0; transform: none; }
}

/* phone: the fixed back link sits on a white strip so text doesn't scroll under it */
@media (max-width: 760px) {
  .back { left: 0; right: 0; top: 0; padding: 14px 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* hypothesis animation (rebuilt from the Framer component): a cursor skips the defaults, clicks Generate,
   can't trace the draft back to the settings, and fixes the angle in chat afterward. 9s loop.
   Base styles are the end state, so reduced motion shows the whole story at once. */
.hyp { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; overflow: visible; font-family: Inter, system-ui, sans-serif; }
.hyp .bd { stroke: rgba(0, 0, 0, .15); } .hyp line.bd, .hyp rect.bd { fill-opacity: 1; }
.hyp .mu { stroke: #6b6b6b; } .hyp text.m { fill: #6b6b6b; } .hyp text.f { fill: #9a9a9a; } .hyp circle.f { stroke: #9a9a9a; }
.hyp .h-dash { fill: none; stroke: #9a9a9a; stroke-width: 1; stroke-dasharray: 2 3; }
.hyp .h-ln { stroke: rgba(0, 0, 0, .15); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hyp .h-btn { transform-box: fill-box; transform-origin: center; }
.hyp .h-type { transform-box: fill-box; transform-origin: left center; }
.hyp .h-cur { transform: translate(290px, 148px); }
@media (prefers-reduced-motion: no-preference) {
  .hyp * { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
  .hyp .h-draft { animation-name: hyp-draft; }
  .hyp .h-q { animation-name: hyp-q; }
  .hyp .h-chat { animation-name: hyp-chat; }
  .hyp .h-tag { animation-name: hyp-tag; }
  .hyp .h-dash { animation-name: hyp-dash; }
  .hyp .h-ln { animation-name: hyp-ln; }
  .hyp .h-type { animation-name: hyp-type; }
  .hyp .h-btn { animation-name: hyp-btn; }
  .hyp .h-cur { animation-name: hyp-cur; }
}
@keyframes hyp-draft { 0%, 30% { opacity: 0 } 34%, 88% { opacity: 1 } 94%, 100% { opacity: 0 } }
@keyframes hyp-q     { 0%, 52% { opacity: 0 } 56%, 88% { opacity: 1 } 94%, 100% { opacity: 0 } }
@keyframes hyp-chat  { 0%, 60% { opacity: 0 } 61%, 88% { opacity: 1 } 94%, 100% { opacity: 0 } }
@keyframes hyp-tag   { 0%, 74% { opacity: 0 } 78%, 88% { opacity: 1 } 94%, 100% { opacity: 0 } }
@keyframes hyp-dash  { 0%, 42% { opacity: 0 } 50%, 88% { opacity: 1 } 94%, 100% { opacity: 0 } }
@keyframes hyp-ln    { 0%, 32% { stroke-dashoffset: 1 } 38%, 70% { stroke-dashoffset: 0 } 73% { stroke-dashoffset: .9 } 79%, 100% { stroke-dashoffset: 0 } }
@keyframes hyp-type  { 0%, 60% { transform: scaleX(0) } 70%, 94% { transform: scaleX(1) } 100% { transform: scaleX(0) } }
@keyframes hyp-btn   { 0%, 25% { transform: scale(1) } 27% { transform: scale(.92) } 30%, 100% { transform: scale(1) } }
@keyframes hyp-cur {
  0%, 4% { transform: translate(40px, 176px); opacity: 0 }
  4.01% { opacity: 1 }
  15% { transform: translate(100px, 84px); opacity: 1 }
  25%, 52% { transform: translate(64px, 148px); opacity: 1 }
  60%, 88% { transform: translate(290px, 148px); opacity: 1 }
  94% { transform: translate(290px, 148px); opacity: 0 }
  100% { transform: translate(40px, 176px); opacity: 0 }
}

/* ================================================================ second pass, after sauhee.design/xbox and ruocanpeng.com
   numbered section openers with a one-line claim, grey key-phrase marks, label rows, insight -> response pairs,
   a clickable three-step hero, route option cards, reading progress */
mark { background: #efefef; color: var(--ink); padding: 1px 4px; border-radius: 3px; font-weight: 500; }

/* section opener */
.sh { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sh .no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sh h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.claim { margin: 0 0 28px; padding-left: 16px; border-left: 2px solid #111; font-size: 19px; line-height: 1.45; color: var(--ink); }
.claim b { font-weight: 600; }

/* toc: dots */
.toc a { display: flex; align-items: center; gap: 8px; }
.toc a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* label rows (my contribution, reflection) */
.rows { margin-top: 28px; }
.rows-hd { display: inline-block; margin: 0 0 6px; padding-bottom: 3px; border-bottom: 1px solid #111; font-size: 13px; color: var(--ink); }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row > span { font-size: 13px; color: var(--ink); font-weight: 500; padding-top: 2px; }
.row p { font-size: 14px; margin-bottom: 8px; }
.row p:last-child { margin-bottom: 0; }

/* insight -> design response */
.ins { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.ins-row { display: grid; grid-template-columns: 1.35fr 1fr; }
.ins-row .card { padding: 22px 22px 24px; }
.ins-row .card q { margin: 0; }
.ins-do { padding: 22px 22px 24px; background: var(--panel); display: flex; flex-direction: column; }
.ins-do span { margin-bottom: 14px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.ins-do p { font-size: 14px; color: var(--ink); }
.ins-do a { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.ins-do a:hover { color: var(--ink); }

/* hero: three steps */
.hero { margin-bottom: 44px; }
.hero-stage { position: relative; aspect-ratio: 1400 / 1060; overflow: hidden; background: linear-gradient(160deg, #eef1fb 0%, #f7f7fb 70%); }
.hero-stage img { position: absolute; left: 7%; top: 8%; width: 86%; height: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 44px rgba(20, 30, 70, .14); opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.hero-stage img.on { opacity: 1; transform: none; }
.hero-steps { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hero-steps::before { content: ""; position: absolute; left: 0; right: 70px; top: 50%; height: 1px; background: #ddd; z-index: -1; }
.hero-steps button { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border: 1px solid #ddd; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .25s; }
.hero-steps button i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f1f1f1; font-style: normal; font-size: 10.5px; color: var(--muted); }
.hero-steps button:hover { color: var(--ink); border-color: #bbb; }
.hero-steps button.done { color: var(--ink); }
.hero-steps button.on { background: #111; border-color: #111; color: #fff; }
.hero-steps button.on i { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-steps .go { margin-left: auto; font-size: 15px; font-weight: 600; background: #fff; padding-left: 8px; }
.hero-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* route options */
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.opt { padding: 20px; background: var(--panel); border: 1px solid transparent; }
.opt.pick { background: #fff; border-color: #111; }
.opt .n { display: block; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.opt h3 { font-size: 15px; }
.opt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.opt li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.opt li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-size: 10px; }
.opt li.y::before { content: "✓"; background: #2f9e55; color: #fff; }
.opt li.x::before { content: "✕"; background: #ececec; color: #888; }

/* reading progress */
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 6; pointer-events: none; }
.progress i { display: block; height: 100%; background: #111; transform: scaleX(0); transform-origin: left; }

@media (max-width: 760px) {
  .sh h2 { font-size: 22px; }
  .claim { font-size: 17px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .ins-row { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .hero { margin-bottom: 32px; }
  .hero-stage img { left: 5%; top: 6%; width: 90%; }
  .hero-steps { flex-wrap: wrap; gap: 6px; }
  .hero-steps::before { display: none; }
  .hero-steps button { font-size: 12px; padding-right: 10px; }
  .hero-steps .go { margin-left: 0; font-size: 13px; padding-left: 4px; }
}
.hero-stage { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
mark { padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.opts + p { margin-top: 20px; }

/* ================================================================ third pass: bigger side menu, framed videos, softer surfaces */
/* side menu */
.back { font-size: 14px; }
.toc { top: 132px; gap: 4px; font-size: 14px; }
.toc a { position: relative; padding: 6px 12px 6px 14px; gap: 10px; color: rgba(0, 0, 0, .38); border-radius: 8px; transition: color .2s, background .2s; }
.toc a::before { width: 6px; height: 6px; opacity: .55; transition: transform .2s, opacity .2s; }
.toc a:hover { background: rgba(0, 0, 0, .035); }
.toc a.on { color: var(--ink); font-weight: 500; background: rgba(0, 0, 0, .045); }
.toc a.on::before { opacity: 1; transform: scale(1.3); }
@media (max-width: 1280px) { .toc { left: 20px; font-size: 13px; } }

/* videos: browser-window frame, no black box while loading */
/* the two recordings with 2px black side bars were re-encoded with those edges cropped, so no clip is needed */
.vid { background: #fff; display: block; }
/* while playing, Chrome draws video on its own layer and fills any sub-pixel gap between the box and the frame
   with black (the box is e.g. 345.99px tall at 1.5x zoom). cover fills the box, the 1px bleed hides the seam. */
.win { position: relative; }
.win .vid { width: 100%; max-width: none; margin: 0; object-fit: cover; }
/* Chrome on Windows hands a playing video to a hardware overlay: it punches a transparent hole in the page and draws
   the video underneath. If hole and video differ by a sub-pixel, black flickers at the edges while frames update, and
   screenshots never show it (they only capture the page layer). A near-1 opacity keeps the video in the normal
   compositor, and the frame box (.win) gets a whole-pixel height from the script below. */
.win .vid { opacity: .999; }
.win { width: 100%; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 14px 36px rgba(20, 30, 70, .10); }
.win-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #f4f4f5; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #dcdcde; }

/* softer surfaces */
.panel { border-radius: 16px; background: linear-gradient(180deg, #fafafa 0%, #f5f5f6 100%); }
.panel.flush { overflow: hidden; }
.panel .shot { border-radius: 8px; overflow: hidden; }
.panel .shot .pin { z-index: 1; }
.card, .stats div, .opt, .ins-do, .rounds a, .next a, .minor figure, .learn, .result, .refs .shot, .ba div { border-radius: 12px; }
.ins-row { border-radius: 14px; overflow: hidden; }
.ins-row .card { border-radius: 0; }
.ins-row .ins-do { border-radius: 0; }
.hero-stage { border-radius: 16px; }
.canvas { border-radius: 16px; }
.callout { border-radius: 14px; }
.result { border-radius: 16px; }
.regroup .l, .regroup .stage { border-radius: 8px; }
.tr-act, .tr-st span { border-radius: 6px; }
.chips .stack span, .chips .one { border-radius: 6px; }
.minor .shot { border-radius: 6px; overflow: hidden; }

/* iteration headings with a version chip */
h2.it { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.vchip { flex: none; display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lilac); color: #3b31a8; font-size: 13px; font-weight: 600; letter-spacing: 0; }

/* sub-headings a step up */
.sub > h3 { font-size: 18px; letter-spacing: -0.01em; }
.sol h3 { font-weight: 500; }

@media (max-width: 760px) {
  .panel { border-radius: 12px; }
  h2.it { font-size: 19px; align-items: flex-start; }
  .vchip { margin-top: 1px; }
  .win { border-radius: 8px; }
  .win-bar { height: 20px; }
  .win-bar i { width: 6px; height: 6px; }
}

/* ================================================================ HTML rebuild of the step-2 screen (Prompt Match)
   Measured from the 1470px-wide recording at half size; .mock-fit zooms it to whatever width it gets. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/_gf/s/plusjakartasans/latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
.hero-stage > * { position: absolute; left: 7%; top: 8%; width: 86%; height: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 44px rgba(20, 30, 70, .14); opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.hero-stage > .on { opacity: 1; transform: none; }
.mock-fit { display: block; width: 100%; overflow: hidden; background: #fff; }
.mockshot { cursor: default !important; }
.pm { width: 735px; height: 667px; overflow: hidden; background: #fff; color: #111; font: 400 10px/1.35 "Plus Jakarta Sans", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-align: left; }
.pm svg { flex: none; display: block; }
.pm-head { display: flex; align-items: center; gap: 16px; height: 83px; padding: 0 25px; border-bottom: 1px solid #ececec; }
.pm-n { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #111; color: #fff; font-size: 10.5px; font-weight: 700; }
.pm-head b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.pm-head div span { display: block; margin-top: 2px; font-size: 10px; color: #7a7a7a; }
.pm-body { padding: 0 25px; }
.pm-row { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 20px; height: 73px; }
.pm-sel { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pm-sel svg { width: 11px; height: 11px; color: #3f9a55; }
.pm-next { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pm-btn { display: flex; align-items: center; gap: 8px; height: 25px; padding: 0 12px 0 13px; border-radius: 12.5px; background: #151515; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pm-btn svg { width: 9px; height: 9px; }
.pm-next small { font-size: 8px; color: #b2b2b2; letter-spacing: -.01em; }
.pm-card { height: 87px; margin-bottom: 10px; padding: 16px 16px 0; border: 1px solid #e9e9e9; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .02); }
.pm-meta { display: flex; align-items: center; gap: 7px; }
.pm-tag { display: inline-flex; align-items: center; gap: 5px; height: 15px; padding: 0 7px 0 6px; border: 1px solid #ececec; border-radius: 4px; background: #f6f6f6; color: #575757; font-size: 7.5px; font-weight: 700; letter-spacing: .07em; }
.pm-tag svg { width: 8.5px; height: 8.5px; color: #6a6a6a; }
.pm-ig { font-size: 8px; color: #b5b5b5; letter-spacing: -.01em; }
.pm-ig b { font-weight: 600; color: #555; }
.pm-q { margin: 17px 0 0; color: #111; font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.pm-collapse { display: flex; justify-content: flex-end; height: 32px; padding-top: 10px; }
.pm-collapse span { padding-bottom: 1px; border-bottom: 1px solid #111; font-size: 8.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2; height: 11px; }
.pm-pool-hd { display: flex; justify-content: space-between; align-items: center; height: 44px; border-top: 1px solid #ececec; padding: 0 10px 0 0; }
.pm-pool-hd > span:first-child { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a8a8a8; }
.pm-more { display: flex; align-items: center; gap: 6px; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #555; }
.pm-more svg { width: 10px; height: 10px; }
.pm-pool { position: relative; height: 240px; overflow: hidden; border-radius: 10px 10px 0 0; background: #f7f7f7; padding: 0 22px 0 10px; }
.pm-list { margin-top: -27px; display: flex; flex-direction: column; gap: 7px; }
.pm-item { padding: 12px 10px 11px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; }
.pm-item .pm-meta { justify-content: space-between; }
.pm-item p { margin: 9px 0 0; color: #1d1d1d; font-size: 10px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.pm-item.pm-on { border-color: #9d9d9d; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.pm-ic { margin-right: 36px; color: #c4c4c4; }
.pm-ic svg { width: 11px; height: 11px; }
.pm-item.pm-dim { opacity: .35; }
.pm-bar { position: absolute; right: 6px; top: 4px; bottom: 0; width: 6px; }
.pm-bar::before { content: ""; position: absolute; left: 0; top: 0; border: 3.5px solid transparent; border-bottom: 5px solid #8a8a8a; border-top: 0; }
.pm-bar i { position: absolute; left: 0; top: 64px; width: 6px; height: 64px; border-radius: 3px; background: #9b9b9b; }
.hero-stage > .mock-fit { width: 86%; }
@media (max-width: 760px) { .hero-stage > .mock-fit { width: 90%; } }

/* ================================================================ HTML rebuilds of the step-1 and step-3 screens (same 735px grid as step 2) */
.pm1 { height: 640px; }
.pm3 { height: 570px; }
.pm h4, .pm h5, .pm hr { margin: 0; }
/* step 1 */
.p1-row { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.p1-row .pm-sel { margin-top: 0; }
.p1-info { margin-left: 4px; color: #b8b8b8; }
.p1-info svg { width: 10px !important; height: 10px !important; color: #b8b8b8 !important; }
.p1-card { margin-top: 5px; height: 296px; padding: 17px 16px 0 17px; border: 1px solid #ececec; border-left: 3px solid #4fa060; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); }
.p1-th { display: flex; align-items: center; height: 24px; }
.p1-th h4 { flex: 1; font-size: 20.5px; font-weight: 700; letter-spacing: -.035em; color: #111; white-space: nowrap; }
.p1-ai { height: 18px; padding: 0 8px; border: 1px solid #dcefe1; border-radius: 9px; background: #eff8f1; color: #3f9a55; font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 16px; }
.p1-bin { display: grid; place-items: center; width: 21px; height: 21px; margin-left: 8px; border-radius: 5px; background: #f4f4f4; color: #b0b0b0; }
.p1-bin svg { width: 10px; height: 10px; }
.p1-in { height: 228px; margin-top: 10px; padding: 13px 13px 0; border: 1px solid #efefef; border-radius: 12px; background: #fafafa; }
.p1-in h5 { font-size: 10px; font-weight: 600; color: #555; line-height: 13.5px; letter-spacing: -.01em; }
.p1-r { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; font-size: 9.5px; line-height: 20.5px; }
.p1-r + .p1-r { margin-top: 5px; }
.p1-r svg { width: 10px; height: 10px; margin-top: 5px; color: #a8a8a8; }
.p1-r .l, .p1-lr .l { flex: none; font-size: 8px; color: #ababab; }
.p1-r .v { color: #666; letter-spacing: -.01em; }
.p1-in hr { height: 0; margin: 12px 0 13px; border: 0; border-top: 1px solid #ececec; }
.p1-chips, .p1-lchips { display: flex; flex-wrap: wrap; gap: 6px 5px; margin-top: 8px; }
.p1-chip { display: inline-flex; align-items: center; gap: 6px; height: 17.5px; padding: 0 8px; border: 1px solid #e9e9e9; border-radius: 9px; background: #f3f3f3; color: #555; font-size: 8.5px; letter-spacing: -.01em; }
.p1-chip b { font-weight: 700; color: #222; }
.p1-chip.m { background: #fff; border-color: #f3f3f3; }
.p1-tot { display: flex; align-items: center; gap: 7px; margin-top: 10px; height: 18px; }
.p1-tot i { font-style: normal; font-size: 7.5px; color: #ababab; }
.p1-tot b { font-size: 11px; font-weight: 700; color: #111; }
.p1-tot .c { margin-left: 9px; font-size: 8px; }
.p1-low { height: 15px; padding: 0 8px; border-radius: 8px; background: #ebf7ee; color: #3f9a55; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 15px; }
.p1-tot em { font-style: normal; font-size: 9.5px; font-weight: 500; color: #666; }
.p1-collapse { display: flex; justify-content: flex-end; align-items: center; height: 43.5px; font-size: 8.5px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: #1a1a1a; }
.p1-custom { display: flex; align-items: center; height: 37.5px; padding: 0 10px 0 14px; border: 1px solid #ececec; border-radius: 19px; }
.p1-cl { display: flex; align-items: center; gap: 7px; padding-right: 11px; border-right: 1px solid #ececec; height: 18px; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #444; }
.p1-cl svg { width: 9px; height: 9px; }
.p1-ph { flex: 1; display: flex; align-items: center; gap: 7px; padding-left: 10px; font-size: 9.5px; color: #b2b2b2; letter-spacing: -.01em; }
.p1-ph svg, .p3-s > svg { width: 10px; height: 10px; color: #a8a8a8; }
.p1-gen { display: flex; align-items: center; justify-content: center; gap: 6px; width: 94px; height: 24.5px; border-radius: 12px; background: #c3c3c3; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.p1-gen svg { width: 9px; height: 9px; }
.p1-tabs { position: relative; display: flex; align-items: center; gap: 26px; height: 44px; border-bottom: 1px solid #ececec; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #bbb; }
.p1-tabs > span { position: relative; line-height: 12px; }
.p1-tabs > .on { color: #111; }
.p1-tabs > .on::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1.5px; background: #111; }
.p1-seg { position: absolute !important; right: 0; top: 13.5px; display: flex; align-items: center; height: 24px; padding: 0 3px; border: 1px solid #ececec; border-radius: 7px; background: #f4f4f4; font-size: 7.5px; }
.p1-seg b { padding: 0 9px; height: 17px; line-height: 17px; border-radius: 5px; background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.p1-seg i { font-style: normal; padding: 0 11.5px; color: #b5b5b5; }
.p1-lib { position: relative; display: flex; gap: 14px; height: 200px; margin-top: 13.5px; padding: 11px 22.5px 0 10.5px; border-radius: 12px 12px 0 0; background: #f5f5f5; overflow: hidden; }
.p1-lc { flex: 1; padding: 12.5px 12.5px 0; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; }
.p1-lt { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.p1-lt b { font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: -.025em; color: #111; }
.p1-lt span { display: flex; gap: 10px; margin-top: 1px; color: #bbb; }
.p1-lt svg { width: 10px; height: 10px; }
.p1-lr { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: 8px; line-height: 10.5px; }
.p1-lt + .p1-lr { margin-top: 9.75px; }
.p1-lr svg { width: 8.5px; height: 8.5px; margin-top: 1px; color: #b0b0b0; }
.p1-lr .v { color: #666; letter-spacing: -.01em; min-width: 0; }
.p1-lr .e { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p1-roi { display: flex; align-items: baseline; gap: 4px; margin-top: 15px; }
.p1-roi i { font-style: normal; font-size: 6.5px; color: #aaa; }
.p1-roi i + b + i { margin-left: 9px; }
.p1-roi b { font-size: 9px; font-weight: 700; color: #111; }
.p1-lchips { margin-top: 10.5px; gap: 4px; }
.p1-lchips .p1-chip { height: 12px; padding: 0 7px; gap: 5px; border-radius: 6px; font-size: 6.5px; }
.p1-lib .pm-bar { right: 7px; top: 6px; }
.p1-lib .pm-bar i { top: 9px; height: 60px; }
/* step 3 */
.p3-pool { display: inline-flex; align-items: center; gap: 7px; height: 23.5px; margin-top: 20px; padding: 0 11px; border: 1px solid #e1f1e5; border-radius: 12px; background: #eef7f1; color: #2f7a4a; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.p3-pool svg { width: 11px; height: 11px; }
.p3-panel { height: 500px; margin-top: 16px; padding: 12px 13px 0; border: 1px solid #ececec; border-radius: 12px; overflow: hidden; }
.p3-f { display: flex; align-items: center; gap: 4.5px; height: 19px; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b5b5b5; }
.p3-f b, .p3-f i { font-style: normal; padding: 0 9.5px; line-height: 19px; }
.p3-f b { border-radius: 10px; background: #111; color: #fff; }
.p3-f span { display: flex; gap: 13.5px; margin-left: auto; }
.p3-f span i { padding: 0; }
.p3-s { display: flex; align-items: center; height: 44px; margin-top: 14px; padding-left: 11.5px; border-radius: 14px; background: #f4f4f4; }
.p3-sc { display: flex; align-items: center; gap: 10px; height: 22.5px; margin-left: 8px; padding: 0 10px; border: 1px solid #e2e2e2; border-radius: 6px; background: #fff; color: #222; font-size: 8px; font-weight: 600; letter-spacing: -.01em; }
.p3-sc svg { width: 8px; height: 8px; color: #999; }
.p3-ph { margin-left: 7px; font-size: 9.5px; color: #b5b5b5; letter-spacing: -.01em; }
.p3-o2 { display: flex; align-items: center; gap: 6px; height: 16px; margin-top: 13.5px; font-size: 7.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #222; }
.p3-o2 > b { font-weight: 800; margin-right: 2px; }
.p3-o2 > b.g { margin-left: 16px; }
.p3-p { padding: 0 9px; line-height: 16px; border-radius: 8px; color: #c4c4c4; font-weight: 700; letter-spacing: .02em; }
.p3-p.on { color: #222; background: #fff; box-shadow: 0 0 0 1px #f2f2f2, 0 1px 3px rgba(0, 0, 0, .05); }
.p3-p.off { color: #dadada; }
.p3-sel { display: flex; align-items: center; justify-content: space-between; width: 128px; height: 16px; padding: 0 7px 0 6px; border: 1px solid #ddd; border-radius: 4px; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #222; }
.p3-sel svg { width: 9px; height: 9px; color: #888; }
.p3-btns { display: flex; align-items: center; gap: 8px; margin-top: 14.5px; }
.p3-btns > span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 27.5px; border-radius: 9px; font-size: 8.5px; font-weight: 700; letter-spacing: -.01em; }
.p3-btns svg { width: 10px; height: 10px; }
.p3-view { width: 112px; height: 29.5px !important; border: 1.5px solid #4a4a4a; color: #222; }
.p3-batch { width: 117.5px; background: #111; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.p3-list { position: relative; display: flex; flex-direction: column; gap: 5.25px; margin-top: 13px; padding-right: 15.5px; }
.p3-t { display: flex; align-items: center; height: 38px; padding: 0 23px 0 13.5px; border: 1px solid #ececec; border-radius: 11px; }
.p3-t.p3-hov { border-color: #9a9a9a; }
.p3-o { flex: none; width: 16px; height: 16px; border: 1px solid #e3e3e3; border-radius: 50%; }
.p3-tt { flex: 1; margin-left: 9.5px; font-size: 10px; font-weight: 500; letter-spacing: -.01em; color: #1d1d1d; white-space: nowrap; }
.p3-tag { height: 17px; padding: 0 10px; border: 1px solid #e2e2e2; border-radius: 5px; color: #ababab; font-size: 7px; font-weight: 700; letter-spacing: .14em; line-height: 15px; text-transform: uppercase; }
.p3-del { display: flex; align-items: center; gap: 5px; margin-left: 21.5px; font-size: 8px; color: #ababab; }
.p3-del svg { width: 8px; height: 8px; }
.p3-list .pm-bar { right: 3px; top: 3px; }
.p3-list .pm-bar i { top: 10px; height: 37.5px; }
.p1-lt { gap: 8px; }
.p1-lt b { letter-spacing: -.03em; }
.p1-lt span { gap: 9px; }
.p3-tag { letter-spacing: .16em; }
.pm, .pm * { white-space: nowrap; }
.pm .p1-r .v, .pm .p1-lt b, .pm .p1-lr .v:not(.e) { white-space: normal; }
.p3-o2 > * { flex: none; }

/* ================================================================ motion for the rebuilt screens (.play is added by script when a screen comes into view) */
@keyframes mk-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes mk-fade { from { opacity: 0; } }
@keyframes mk-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
@keyframes mk-drop { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes mk-press { 0%, 100% { transform: none; } 35% { transform: scale(.93); } }
@keyframes mk-nudge { 0%, 100% { transform: none; box-shadow: none; } 50% { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(0, 0, 0, .08); } }
@keyframes mk-scroll { from { transform: translateY(52px); } }
@keyframes mk-green { from { border-left-color: #e4e4e4; } }
@keyframes mk-ring { from { border-color: #e3e3e3; box-shadow: none; } }
@keyframes mk-hov { 0% { border-color: #ececec; } 100% { border-color: #9a9a9a; } }
@keyframes mk-check { from { background: transparent; border-color: #e3e3e3; } }
@keyframes mk-sweep { 0% { opacity: 1; background-position: -60% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }
.mock-fit.play * { animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* step 1: the recommended direction assembles, its evidence lands, the library follows */
.play .p1-card { animation: mk-up .5s, mk-green .6s .35s both; }
.play .p1-in > * { animation: mk-up .45s both; }
.play .p1-in > :nth-child(1) { animation-delay: .3s; }
.play .p1-in > :nth-child(2) { animation-delay: .42s; }
.play .p1-in > :nth-child(3) { animation-delay: .54s; }
.play .p1-in > :nth-child(4) { animation-delay: .66s; }
.play .p1-in > :nth-child(5) { animation-delay: .74s; }
.play .p1-in > .p1-chips { animation: none; }
.play .p1-chips > * { animation: mk-pop .4s both; }
.play .p1-chips > :nth-child(1) { animation-delay: .85s; }
.play .p1-chips > :nth-child(2) { animation-delay: .93s; }
.play .p1-chips > :nth-child(3) { animation-delay: 1.01s; }
.play .p1-chips > :nth-child(4) { animation-delay: 1.09s; }
.play .p1-chips > :nth-child(5) { animation-delay: 1.17s; }
.play .p1-in > :nth-child(7) { animation-delay: 1.25s; }
.play .p1-low { animation: mk-pop .45s 1.45s both; }
.play .p1-ai { animation: mk-pop .45s 1.6s both; }
.play .p1-lc { animation: mk-up .5s both; }
.play .p1-lc:nth-child(1) { animation-delay: 1.75s; }
.play .p1-lc:nth-child(2) { animation-delay: 1.88s; }
.play .pm1 .pm-btn { animation: mk-nudge .7s 2.4s both; }

/* step 2: the pool scrolls, a question is picked, it joins the selected prompts */
.play .pm:not(.pm1):not(.pm3) .pm-row + .pm-card { animation: mk-up .45s .05s both; }
.play .pm-list { animation: mk-scroll 1s .2s both; }
.play .pm-on { animation: mk-ring .3s 1.15s both; }
.play .pm-on .pm-ic { animation: mk-pop .35s 1.2s both; }
.play .pm-card + .pm-card { animation: mk-drop .55s 1.45s both; }
.play .pm-n + div, .play .pm:not(.pm1):not(.pm3) .pm-sel { animation: mk-fade .4s both; }
.play .pm:not(.pm1):not(.pm3) .pm-btn { animation: mk-nudge .7s 2.2s both; }

/* step 3: titles stream in, two get picked, batch generate runs */
.p3-t { position: relative; overflow: hidden; }
.p3-o { position: relative; }
.p3-t:nth-child(-n+2) .p3-o { border-color: #111; background: #111; }
.p3-t:nth-child(-n+2) .p3-o::after { content: ""; position: absolute; left: 5.2px; top: 2.6px; width: 3.2px; height: 6.4px; border: solid #fff; border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.p3-t::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(80, 160, 100, .13), transparent) no-repeat; background-size: 45% 100%; }
.play .p3-t { animation: mk-up .4s both; }
.play .p3-t:nth-child(1) { animation-delay: .05s; }
.play .p3-t:nth-child(2) { animation-delay: .12s; }
.play .p3-t:nth-child(3) { animation-delay: .19s; }
.play .p3-t:nth-child(4) { animation-delay: .26s; }
.play .p3-t:nth-child(5) { animation-delay: .33s; }
.play .p3-t:nth-child(6) { animation-delay: .40s; }
.play .p3-t:nth-child(1) .p3-o { animation: mk-check .25s .95s both; }
.play .p3-t:nth-child(2) .p3-o { animation: mk-check .25s 1.25s both; }
.play .p3-t:nth-child(1) .p3-o::after { animation: mk-pop .3s .98s both; }
.play .p3-t:nth-child(2) .p3-o::after { animation: mk-pop .3s 1.28s both; }
.play .p3-hov { animation: mk-up .4s .12s both, mk-hov .3s 1.1s both; }
.play .p3-o2 .p3-p.on:last-child { animation: mk-nudge .6s 1.45s both; }
.play .p3-batch { animation: mk-press .35s 1.95s both; }
.play .p3-t:nth-child(-n+2)::before { animation: mk-sweep 1.1s 2.2s both; animation-timing-function: ease-in-out; }

@media (prefers-reduced-motion: reduce) { .mock-fit.play *, .mock-fit.play *::before, .mock-fit.play *::after { animation: none !important; } }
@keyframes mk-tick { 0% { opacity: 0; transform: rotate(45deg) scale(.4); } 70% { opacity: 1; transform: rotate(45deg) scale(1.15); } 100% { transform: rotate(45deg); } }
.play .p3-t:nth-child(1) .p3-o::after { animation: mk-tick .3s .98s both; }
.play .p3-t:nth-child(2) .p3-o::after { animation: mk-tick .3s 1.28s both; }

/* ================================================================ Pet Bridge (body.t-pb) and components shared by the other hand-written case studies */
.t-pb { --yellow: #f4ffc4; --green: #e8fdd2; --lilac: #ffe4f2; --accent: #ff2d95; }
.t-pb .vchip { background: var(--lilac); color: #b0126a; }
.t-pb .pill.solid { background: #ffe4f2; color: #a10f61; }
.t-pb .frame { border-color: #ff9fcf; } .t-pb .frame i { border-color: #ff7dbd; }
.t-pb .callout .ic { background: #ffe4f2; color: var(--accent); }
.cover { margin: 0 0 44px; border-radius: 16px; overflow: hidden; background: #262626; aspect-ratio: 1440 / 900; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .big { display: block; margin-bottom: 8px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
/* phone recordings: white frames, so they sit on white */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.phones figure { margin: 0; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.phones video, .feat .phone video { width: 64%; margin: 0 auto; background: #fff; }
.phones figcaption { margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--body); text-align: left; }
.phones figcaption b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 500; }
.feat { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: 0; }
.feat.flip { grid-template-columns: 1fr 240px; }
.feat.flip .phone { order: 2; }
.feat .phone { padding: 16px 0; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.feat .phone video { width: 80%; }
.feat h3 { font-size: 18px; letter-spacing: -0.01em; }
.ticks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: var(--body); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--lilac); color: var(--accent); font-size: 10px; font-weight: 600; }
/* bar chart */
.bars-panel { align-items: stretch; }
.bars { width: 100%; padding: 6px 4px 0; }
.bars-hd { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.bars-hd b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 12px; margin-bottom: 18px; font-size: 14px; }
.bar b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.bar i { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 6px; background: #ebebeb; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--accent); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
.bar.a i::after { background: #d6f000; }
.rv:not(.in) .bar i::after { transform: scaleX(0); }
.bars-note { margin: 6px 0 0; padding: 14px 16px; border-radius: 10px; background: #fff3ea; border: 1px solid #ffd9bf; font-size: 13.5px; line-height: 1.55; color: rgba(0, 0, 0, .75); }
.bars-panel figcaption { align-self: flex-start; font-size: 12px; color: var(--muted); }
/* research */
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.counts div { padding: 16px 18px; border-radius: 12px; background: var(--panel); font-size: 13px; color: var(--body); }
.counts b { display: block; margin-bottom: 2px; font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--accent); letter-spacing: -0.02em; }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.themes li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.themes i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--muted); }
.insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.insights .span2 { grid-column: 1 / -1; }
.insights .card .n { margin-bottom: 10px; }
/* persona */
.persona { padding: 24px; border-radius: 16px; background: var(--panel); }
.persona-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.persona-hd img { width: 56px; height: 56px; border-radius: 50%; }
.persona-hd b { display: block; font-size: 17px; font-weight: 500; }
.persona-hd span { font-size: 13px; color: var(--muted); }
.persona-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.persona-tags span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; color: var(--body); }
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.persona-grid > div { padding: 16px 18px; border-radius: 12px; background: #fff; }
.persona-grid span { display: block; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.persona-grid ul { margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.6; color: var(--body); }
/* comparison table */
.cmp-wrap { margin-top: 24px; overflow-x: auto; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12.5px; }
.cmp th { padding: 0 4px 12px; font-weight: 500; color: var(--ink); text-align: center; vertical-align: bottom; line-height: 1.3; }
.cmp tr + tr th { padding: 12px 10px 12px 0; text-align: left; font-weight: 400; color: var(--body); font-size: 13px; border-top: 1px solid var(--line); }
.cmp td { padding: 10px 4px; text-align: center; border-top: 1px solid var(--line); }
.cmp tr:first-child td { border-top: 0; }
.cmp td.y, .cmp td.n { font-size: 0; }
.cmp td.y::before, .cmp td.n::before { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 600; }
.cmp td.y::before { content: "✓"; background: var(--accent); color: #fff; }
.cmp td.n::before { content: "✕"; background: #eeeeee; color: #b0b0b0; }
/* stat groups */
.sgrp { margin-top: 16px; padding: 18px; border-radius: 16px; }
.sgrp.p { background: #ffeaf4; } .sgrp.g { background: #f4ffc9; } .sgrp.l { background: #ecebff; }
.sgrp h3 { font-size: 14px; margin-bottom: 12px; }
.sg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sg div { padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, .75); }
.sg b { display: block; font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.sg p { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--body); }
/* needs, ideas */
.needs, .idea-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.needs span, .idea-chips span { padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.needs .n1 { background: #ffd3ea; } .needs .n2 { background: #cffcff; } .needs .n3 { background: #dcdcff; } .needs .n4 { background: #ffe0c2; }
.idea-chips span { background: #ffe4f2; color: #8c0f55; }
.statement b { font-weight: 600; color: var(--accent); }
.modes { flex-direction: row; justify-content: space-around; align-items: flex-start; gap: 16px; background: #fff !important; border: 1px solid var(--line); }
.modes > div { flex: 1; text-align: center; }
.modes video { width: 70%; margin: 0 auto 10px; background: #fff; }
.modes p { font-size: 13px; color: var(--body); }
.modes p b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.lofi { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 16px; }
.lofi > div { display: grid; gap: 12px; align-content: start; }
.lofi .shot, .mood .shot { cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.mood { flex-direction: row; align-items: center; justify-content: center; }
.mood .shot:nth-child(1) { flex: 1.25; } .mood .shot:nth-child(2) { flex: 1; } .mood .shot:nth-child(3) { flex: .45; }
.panel.dark { background: #2b2b2b; }
@media (max-width: 760px) {
  .phones, .insights, .persona-grid, .themes { grid-template-columns: 1fr; }
  .counts, .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 16px; }
  .feat.flip .phone { order: 0; }
  .feat .phone video { width: 56%; }
  .persona-tags { margin-left: 0; }
  .lofi { grid-template-columns: 1fr; }
  .modes { gap: 6px; padding: 18px 10px; }
  .cover { aspect-ratio: 4 / 3; }
}
.t-pb .frame-tag { background: #ff5fae; }


/* ================================================================ Fortune Cookies (body.t-fc) */
.t-fc { --yellow: #e6ecff; --green: #e7f6ee; --lilac: #e6ecff; --accent: #2348ef; }
.t-fc .frame { border-color: #9fb2ff; } .t-fc .frame i { border-color: #7d95ff; }
.t-fc .frame-tag { background: #2348ef; }
.t-fc .callout .ic { background: #e6ecff; color: var(--accent); font-style: normal; }
.t-fc .bar.a i::after { background: #a9b8f7; }
.t-fc .feat { border-top: 0; }
.t-fc .feat .phone { background: #000; border-color: #000; }
.t-fc .feat .phone video { background: #000; }
.counts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.counts i { font-style: normal; color: var(--muted); font-size: 12px; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; counter-reset: st; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--lilac); font-size: 13px; color: var(--ink); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }
.steps li + li { margin-left: 18px; position: relative; }
.steps li + li::after { content: "→"; position: absolute; left: -19px; color: var(--muted); font-size: 13px; }
.steps.v { flex-direction: column; align-items: flex-start; gap: 22px; }
.steps.v li + li { margin-left: 0; }
.steps.v li + li::after { content: "↓"; left: 12px; top: -21px; }
.card.nextc { border-style: dashed; border-color: #8ea2ff; }
.card.nextc .n { color: var(--accent); }
.mapgrid { margin-top: 24px; display: grid; gap: 8px; }
.mapd summary small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.mapd .panel { margin-top: 12px; padding: 16px; }
.path { margin-top: 44px; }
.path-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.path-hd h3 { font-size: 18px; letter-spacing: -0.01em; }
.path-hd .num { font-size: 12px; color: var(--muted); }
.path > p { margin-top: 6px; font-size: 14px; }
.strip { display: flex; gap: 10px; margin: 16px 0 0; padding: 0 0 12px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip li { flex: none; width: 130px; scroll-snap-align: start; text-align: center; }
.strip .shot { border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #1b1d21; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.08); }
.strip img { display: block; width: 100%; height: auto; }
.strip li > .num { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .counts.c3 { grid-template-columns: 1fr; }
  .strip li { width: 112px; }
  .steps li + li { margin-left: 0; }
  .steps li + li::after { display: none; }
}


/* ================================================================ Puyue MCS (body.t-pm) */
.t-pm { --yellow: #e5edff; --green: #e6f4ff; --lilac: #e5edff; --accent: #1f5cff; }
.t-pm .frame { border-color: #9fb8ff; } .t-pm .frame i { border-color: #7d9fff; }
.t-pm .frame-tag { background: #1f5cff; }
.t-pm .callout .ic { background: #e5edff; color: var(--accent); font-style: normal; }
.pm-cover { background: #fff; }
.pm-cover, .pm-cover img { aspect-ratio: auto; height: auto; }
.t-pm .sub > .ticks { margin-top: 14px; }
.t-pm .panel.flush .shot { border-radius: 0; box-shadow: none; }
.t-pm .panel > .shot + .shot { margin-top: 8px; }


/* ---- workfx.ai (body.wf-wide): screenshots and videos break out of the 690px text column, a V1→V2→V3 strip opens
   Process, and secondary detail folds into <details class="more">. ---- */
.wf-wide { --wide: min(1000px, calc(100vw - 64px)); }
@media (min-width: 1181px) { .wf-wide { --wide: max(690px, min(1000px, calc(100vw - 440px))); } }
@media (min-width: 761px) {
  .wf-wide main figure.panel:not(.tall):has(> .win, > .shot), .wf-wide .refs, .wf-wide .vstrip, .wf-wide .conv, .wf-wide .decs {
    width: var(--wide); max-width: none; margin-left: calc((100% - var(--wide)) / 2); }
  .wf-wide main figure.panel:not(.tall):has(> .win, > .shot) { padding: 36px; }
}
.vstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 32px 0 8px; counter-reset: vs; }
.vstrip a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 18px; border-radius: 14px; background: linear-gradient(180deg, #fafafa 0%, #f4f4f6 100%); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.vstrip a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20, 30, 70, .35); }
.vstrip a + a::before { content: "→"; position: absolute; left: -12px; top: 70px; width: 10px; text-align: center; color: #b4b4bc; font-size: 13px; }
.vs-img { display: block; aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 20px rgba(20,30,70,.08); }
.vs-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.vs-k { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.vs-k .vchip { height: 22px; padding: 0 8px; font-size: 12px; font-style: normal; }
.vstrip b { padding: 0 4px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.vs-out { padding: 0 4px; font-size: 13px; line-height: 1.45; color: var(--body); }
.vstrip a:last-child .vs-out { color: #2f7a1f; }
.vstrip + p { margin-top: 28px; }
details.more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary h3 { margin: 0; }
details.more > summary span { grid-column: 1; color: var(--body); font-size: 15px; }
details.more > summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; color: var(--muted); transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(45deg); }
details.more[open] > summary { border-bottom-color: transparent; }
@media (max-width: 760px) {
  .vstrip { grid-template-columns: 1fr; gap: 10px; }
  .vstrip a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-content: center; gap: 2px 12px; padding: 10px; }
  .vstrip .vs-img { grid-row: 1 / span 3; margin: 0; aspect-ratio: 4 / 3; }
  .vstrip a + a::before { content: "↓"; left: 50%; top: -12px; }
}

/* ---- Fortune Cookies (case.css v24): "four ways in, one outcome" strip in Overview, three annotated design decisions,
   the full screen-by-screen paths folded into <details class="more paths">. ---- */
.src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.conv { display: grid; grid-template-columns: minmax(0, 4fr) 40px minmax(0, 1.15fr); align-items: center; margin: 28px 0 8px; }
.conv-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cv, .conv-out { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; border-radius: 14px; background: linear-gradient(180deg, #fafafa 0%, #f4f4f6 100%); color: var(--ink); text-decoration: none; }
.cv { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.cv:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20, 30, 70, .35); }
.cv-img { display: block; aspect-ratio: 4 / 5; margin-bottom: 8px; overflow: hidden; border-radius: 9px; background: #1b1d21; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 20px rgba(20,30,70,.1); }
.cv-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.cv-k { display: flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 12px; color: var(--muted); }
.cv-k .vchip { height: 20px; padding: 0 7px; font-size: 11px; font-style: normal; background: var(--lilac); color: var(--accent); }
.cv b, .conv-out b { padding: 0 2px; font-size: 14.5px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.cv-d { padding: 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--body); }
.conv-out { background: #eef2ff; box-shadow: inset 0 0 0 1.5px #c3cffd; }
.conv-out .cv-k { color: var(--accent); font-weight: 600; }
/* four lines gathering into one arrow */
.conv-arrow { position: relative; align-self: stretch; }
.conv-arrow::before { content: ""; position: absolute; left: 6px; right: 10px; top: 50%; border-top: 1.5px solid #b9c4f5; }
.conv-arrow::after { content: ""; position: absolute; right: 6px; top: calc(50% - 4.5px); border: 5px solid transparent; border-left: 7px solid #b9c4f5; border-right: 0; }
.conv-wrap + .pills { margin-top: 24px; }

.decs { display: grid; gap: 22px; margin: 32px 0 36px; }
.dec { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: center; padding: 28px; border-radius: 18px; background: linear-gradient(180deg, #fafafa 0%, #f4f4f6 100%); }
.dec:nth-child(2) { grid-template-columns: minmax(0, 1fr) 300px; }
.dec:nth-child(2) .dec-shot { order: 2; }
.dec-shot { position: relative; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: #1b1d21; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px -16px rgba(20,30,70,.35); }
.dec-shot img { display: block; width: 100%; height: auto; }
.dec-shot .hl { position: absolute; left: 3%; right: 3%; border-radius: 12px; box-shadow: 0 0 0 2px #7d95ff, 0 0 18px rgba(125, 149, 255, .45); pointer-events: none; }
.dec-tx .label { display: block; margin-bottom: 8px; color: var(--accent); font-weight: 600; }
.dec-tx h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
.dec-tx > p { margin-top: 12px; }
.dec-why { margin-top: 18px !important; padding-left: 14px; border-left: 2px solid #b9c4f5; font-size: 14px; line-height: 1.55; color: var(--body); }
.dec-why b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
details.more.paths { margin-top: 8px; }
details.more.paths[open] { padding-bottom: 8px; }
details.more.paths .path:first-of-type { margin-top: 20px; }
@media (max-width: 760px) {
  .conv { grid-template-columns: 1fr; gap: 0; }
  .conv-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .conv-arrow { height: 34px; }
  .conv-arrow::before { left: 50%; right: auto; top: 6px; bottom: 10px; border-top: 0; border-left: 1.5px solid #b9c4f5; }
  .conv-arrow::after { left: calc(50% - 4.25px); right: auto; top: auto; bottom: 4px; border: 5px solid transparent; border-top: 7px solid #b9c4f5; border-bottom: 0; }
  .conv-out { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-content: center; gap: 2px 12px; }
  .conv-out .cv-img { grid-row: 1 / span 3; margin: 0; }
  .dec, .dec:nth-child(2) { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .dec:nth-child(2) .dec-shot { order: 0; }
  .dec-shot { width: min(260px, 78%); margin: 0 auto; }
  .dec-tx h3 { font-size: 19px; }
}

/* ---- "Next on" cards carry a picture of each project (case.css v25). Images are the homepage card scenes, rendered
   to /_wfx/next/*.webp; all.webp is a 2x2 of the four for "Back to projects". ---- */
.next a { display: flex; flex-direction: column; padding: 10px 16px 16px; border-radius: 14px; color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  transition: background .2s, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.next a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20, 30, 70, .35); }
.next a > span:not(.nx-img) { margin-bottom: 2px; font-weight: 400; letter-spacing: 0; }
.next .nx-img { aspect-ratio: 16 / 10; margin: 0 -6px 12px; overflow: hidden; border-radius: 9px; background: #e9e9ec; font-size: 0; }
.next .nx-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.next a:hover .nx-img img { transform: scale(1.04); }
