.case-page.case-framewise { --case-accent: #c7bbf6; --fw-sky: #8bcdf3; --fw-mint: #91ddc1; --fw-warm: #efbd91; --fw-tone: var(--case-accent); }
.case-framewise .fw-hero { padding-bottom: 64px; }
.fw-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--case-gutter); align-items: center; }
.fw-intro .case-heading { grid-column: 1 / -1; }
.fw-intro .case-copy { --case-copy-measure: 72ch; }
.fw-intro .fw-project-label { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 28px; }
.case-framewise .chapter-heading h2 { max-width: 32ch; }
.case-framewise .fw-overview { margin-top: 40px; }
.fw-copy { --case-copy-measure: 72ch; max-width: 72ch; }
.fw-icon { display: block; width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.case-framewise figure { min-width: 0; margin-inline: 0; }
.fw-moment { padding-block: 24px; }
.fw-moment figcaption { color: var(--body); font-size: 24px; line-height: 1.5; letter-spacing: -.02em; }
.fw-moment figcaption strong { color: var(--case-accent); font-weight: 500; }
.fw-moment-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block: 28px; padding-block: 16px; border-block: 1px solid var(--line); }
.fw-moment-strip > span { display: grid; place-items: center; min-width: 0; height: 88px; border: 1px solid var(--case-outline); border-radius: 10px; background: var(--paper-light); color: var(--muted); }
.fw-moment-strip .fw-found-moment { border-color: #91ddc180; background: color-mix(in srgb, var(--fw-mint) 14%, var(--paper-light)); color: var(--fw-mint); }
.fw-moment-strip .fw-found-moment .fw-icon { width: 36px; height: 36px; }
.fw-moment p { color: var(--body); font-size: 15px; line-height: 1.7; }
.fw-demo-section { padding-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--case-index-height, 60px) + 24px); }
.fw-demo-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.fw-demo-heading h2 { margin: 0; font-size: 23px; }
.fw-demo { margin: 0; }
.fw-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b0d10; border: 1px solid var(--case-outline); border-radius: 12px; }
.fw-demo video:focus-visible { outline: 2px solid var(--case-accent); outline-offset: 5px; }
.fw-demo figcaption { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--body); }
.fw-video-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.fw-video-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--case-accent); text-decoration: underline; text-underline-offset: 4px; }
.fw-video-status { color: var(--case-accent); font-size: 13px; line-height: 1.7; }
.fw-video-status:empty { display: none; }
.fw-chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.fw-chapters a { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 64px; padding: 18px 26px 18px 0; border-top: 1px solid var(--case-outline); color: var(--body); font-size: 14px; line-height: 1.5; }
.fw-chapters a::after { content: "\2192"; position: absolute; right: 4px; top: 18px; color: var(--case-accent); font-size: 18px; }
.fw-chapters a:is(:hover, :focus-visible) { color: var(--ink); border-color: var(--case-accent); }
.fw-chapters span { color: var(--case-accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.fw-walkthrough { margin-top: 24px; border-block: 1px solid var(--line); }
.fw-walkthrough summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none; color: var(--body); font-size: 14px; }
.fw-walkthrough summary::-webkit-details-marker { display: none; }
.fw-walkthrough summary:hover { color: var(--case-accent); }
.fw-walkthrough summary::after { content: "+"; color: var(--case-accent); font-size: 22px; }
.fw-walkthrough[open] summary::after { content: "\2212"; }
.case-framewise .fw-walkthrough .case-copy { --case-copy-measure: 72ch; font-size: 16px; padding-block: 8px 28px; }
.fw-activity > figcaption { color: var(--ink); font-size: 18px; line-height: 1.6; margin-bottom: 24px; }
.fw-activity-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 32px; align-items: center; }
.fw-activity-side { align-self: stretch; padding-block: 24px; border-top: 1px solid color-mix(in srgb, var(--fw-tone) 45%, transparent); }
.fw-activity-side:first-child { --fw-tone: var(--fw-warm); }
.fw-activity-side:last-child { --fw-tone: var(--fw-mint); }
.fw-activity-side .fw-icon { width: 44px; height: 44px; color: var(--fw-tone); margin-bottom: 20px; }
.fw-activity-side h3 { margin: 0; font-size: 22px; color: var(--ink); }
.fw-activity-side ul { margin: 20px 0 0; padding-left: 20px; color: var(--body); font-size: 16px; line-height: 1.7; }
.fw-activity-side li + li { margin-top: 8px; }
.fw-activity-side li::marker { color: var(--fw-tone); }
.fw-not-equal { color: var(--case-accent); font-size: 48px; text-align: center; }
.fw-question-shift { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 28px; align-items: center; }
.fw-question-shift p { font-size: 21px; line-height: 1.5; color: var(--body); }
.fw-question-shift p:last-child { color: var(--ink); }
.fw-question-shift p > span { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.fw-question-shift p:first-child > span { color: var(--fw-warm); }
.fw-question-shift p:last-child > span { color: var(--fw-mint); }
.fw-question-shift > .fw-icon { color: var(--fw-mint); }
.fw-sampling { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--case-gutter); align-items: center; padding-block: 32px; border-block: 1px solid var(--line); }
.fw-sampling-copy { color: var(--ink); font-size: 22px; line-height: 1.5; }
.fw-sampling-copy > strong { display: block; margin-top: 22px; color: var(--case-accent); font-size: clamp(42px, 5vw, 64px); font-weight: 400; line-height: 1.2; letter-spacing: -.03em; white-space: nowrap; }
.fw-sampling-copy > strong span { color: var(--fw-mint); font-size: .6em; }
.fw-sampling-copy > span { display: block; margin-top: 10px; font-size: 13px; color: var(--body); }
.fw-sample-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; }
.fw-sample-row + .fw-sample-row { margin-top: 20px; }
.fw-sample-row > span { font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }
.fw-sample-rail { height: 44px; color: var(--case-accent); background-image: linear-gradient(90deg, currentColor 0 1px, transparent 1px); background-size: calc(100% / var(--fw-samples)) 100%; }
.fw-sample-48 { --fw-samples: 48; opacity: .75; }
.fw-sample-96 { --fw-samples: 96; color: var(--fw-mint); }
.fw-sampling-stages > p { margin-top: 24px; color: var(--body); font-size: 15px; line-height: 1.7; }
:is(.fw-signals, .fw-destinations, .fw-refinements, .fw-build-loop) > :nth-child(4n+1) { --fw-tone: var(--case-accent); --fw-step: 0; }
:is(.fw-signals, .fw-destinations, .fw-refinements, .fw-build-loop) > :nth-child(4n+2) { --fw-tone: var(--fw-sky); --fw-step: 1; }
:is(.fw-signals, .fw-destinations, .fw-refinements, .fw-build-loop) > :nth-child(4n+3) { --fw-tone: var(--fw-mint); --fw-step: 2; }
:is(.fw-signals, .fw-destinations, .fw-refinements, .fw-build-loop) > :nth-child(4n+4) { --fw-tone: var(--fw-warm); --fw-step: 3; }
.fw-signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.fw-signals li { min-width: 0; padding: 24px; border: 1px solid color-mix(in srgb, var(--fw-tone) 30%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--fw-tone) 7%, var(--paper-light)); }
.fw-signals .fw-icon { color: var(--fw-tone); margin-bottom: 20px; width: 36px; height: 36px; }
.fw-signals h3 { margin: 0; color: var(--ink); font-size: 20px; }
.fw-signals p { margin-top: 12px; color: var(--body); font-size: 15px; line-height: 1.7; }
.fw-score-junction { position: relative; width: 1px; height: 36px; margin-inline: auto; background: #c7bbf650; }
.fw-score-junction::after { content: ""; position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--case-accent); opacity: 0; }
.fw-composite { display: flex; align-items: center; justify-content: center; gap: 24px; max-width: 660px; margin-inline: auto; padding: 28px; border-radius: 12px; border: 1px solid #c7bbf675; background: color-mix(in srgb, var(--case-accent) 11%, var(--paper-light)); }
.fw-composite > .fw-icon { color: var(--case-accent); width: 40px; height: 40px; flex-basis: 40px; }
.fw-composite h3 { color: var(--ink); font-size: 21px; margin: 0; }
.fw-composite p { color: var(--body); font-size: 15px; line-height: 1.7; margin-top: 8px; }
.fw-reflection, .fw-human-checkpoint { display: flex; align-items: center; gap: 24px; padding-block: 28px; border-block: 1px solid var(--line); }
.fw-human-checkpoint { padding: 24px 28px; border: 1px solid #91ddc155; border-radius: 12px; background: color-mix(in srgb, var(--fw-mint) 7%, var(--paper-light)); }
.fw-reflection > .fw-icon, .fw-human-checkpoint > .fw-icon { width: 40px; height: 40px; flex-basis: 40px; color: var(--fw-mint); }
.fw-reflection p, .fw-human-checkpoint p { color: var(--body); font-size: 21px; line-height: 1.6; }
.fw-reflection strong, .fw-human-checkpoint strong { font-weight: 500; color: var(--ink); }
.fw-scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--case-gutter); }
.fw-scenarios .case-kicker + h3 { margin-top: 16px; }
.fw-scenarios > article { min-width: 0; }
.fw-scenario-mark { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--fw-sky); }
.fw-scenarios > article:last-child .fw-scenario-mark { color: var(--case-accent); }
.fw-scenario-mark > .fw-icon { width: 52px; height: 52px; flex-basis: 52px; }
.fw-scenario-mark > strong { font-weight: 400; font-size: 68px; line-height: 1; letter-spacing: -.03em; }
.fw-scenario-mark strong > span { margin-left: 12px; font-size: 14px; letter-spacing: 0; color: var(--body); }
.fw-demo-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 44px; margin-top: 20px; color: var(--case-accent); font-size: 14px; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; }
.fw-demo-link span { font-size: 12px; white-space: nowrap; }
.fw-refinements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.fw-refinements > article { min-width: 0; }
.fw-refinements .fw-icon { width: 36px; height: 36px; margin-bottom: 20px; color: var(--fw-tone); }
.case-framewise .fw-refinements h3 { font-size: 20px; }
.fw-refinements p { margin-top: 12px; color: var(--body); font-size: 16px; line-height: 1.75; }
.fw-takeaway { color: var(--case-accent); font-size: 24px; line-height: 1.5; letter-spacing: -.025em; }
.fw-takeaway strong { color: var(--ink); font-weight: 500; }
.fw-reuse-map > figcaption { margin-bottom: 28px; color: var(--ink); font-size: 21px; line-height: 1.5; }
.fw-moment-node { position: relative; display: flex; align-items: center; gap: 20px; width: fit-content; max-width: 100%; padding: 24px; margin-inline: auto; border: 1px solid #91ddc175; border-radius: 12px; background: color-mix(in srgb, var(--fw-mint) 9%, var(--paper-light)); }
.fw-moment-node .fw-icon { color: var(--fw-mint); width: 36px; height: 36px; flex-basis: 36px; }
.fw-moment-node strong { display: block; font-size: 20px; color: var(--ink); line-height: 1.5; font-weight: 500; }
.fw-moment-node span { display: block; margin-top: 6px; color: var(--body); font-size: 14px; line-height: 1.6; }
.fw-moment-node::after { content: ""; position: absolute; bottom: -28px; left: 50%; height: 28px; width: 1px; background: #c7bbf650; }
.fw-reuse-branches { position: relative; width: calc(75% + 18px); height: 28px; margin: 28px auto 0; border: 1px solid #c7bbf650; border-bottom: 0; }
.fw-reuse-branches::before, .fw-reuse-branches::after { content: ""; position: absolute; top: 0; width: 1px; height: 28px; background: #c7bbf650; }
.fw-reuse-branches::before { left: 33.333%; }
.fw-reuse-branches::after { left: 66.667%; }
.fw-destinations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.fw-destinations li { min-width: 0; padding: 24px 20px; border: 1px solid color-mix(in srgb, var(--fw-tone) 30%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--fw-tone) 7%, var(--paper-light)); }
.fw-destinations .fw-icon { width: 32px; height: 32px; margin-bottom: 16px; color: var(--fw-tone); }
.fw-destinations strong { display: block; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.fw-destinations span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }
.fw-build-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--case-gutter); align-items: center; }
.fw-build-number { padding: 32px; border: 1px solid #91ddc155; border-radius: 14px; background: color-mix(in srgb, var(--fw-mint) 8%, var(--paper-light)); }
.fw-build-number > strong { display: block; font-size: clamp(88px, 10vw, 132px); font-weight: 400; line-height: 1; letter-spacing: -.06em; color: var(--fw-mint); }
.fw-build-number > strong > span { font-size: 26px; letter-spacing: 0; margin-left: 14px; }
.fw-build-number > p { margin-top: 24px; font-size: 15px; line-height: 1.7; color: var(--body); }
.fw-build-loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; }
.fw-build-loop li { position: relative; min-width: 0; padding-block: 20px; border-top: 1px solid color-mix(in srgb, var(--fw-tone) 40%, transparent); }
.fw-build-loop .fw-icon { margin-bottom: 16px; color: var(--fw-tone); }
.fw-build-loop strong { display: block; color: var(--ink); font-size: 18px; line-height: 1.5; font-weight: 500; }
.fw-build-loop span { display: block; margin-top: 8px; color: var(--body); font-size: 14px; line-height: 1.6; }
.fw-build-loop li:not(:last-child)::after { content: "\2192"; position: absolute; right: -28px; top: 22px; color: var(--fw-tone); font-size: 20px; }
.fw-ending { padding-block: 36px 0; border-top: 1px solid var(--line); }
.fw-ending > p:not(.case-kicker) { max-width: 70ch; margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--body); }
.case-framewise .fw-ending h3 { margin-top: 32px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; line-height: 1.25; color: var(--case-accent); }
.home-page .framewise-cover { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 28px; background: #22202d; }
.framewise-cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 6px; border: 1px solid #ffffff25; }
.framewise-cover span { display: block; color: #d4c9ff; font-size: 11px; letter-spacing: 1px; }
@keyframes fw-signal { 0%, 15%, 100% { opacity: 0; translate: 0 0; } 30%, 75% { opacity: 1; } 90% { opacity: 0; translate: 0 30px; } }
@keyframes fw-glow { 0%, 40%, 100% { filter: none; } 15%, 25% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--fw-tone) 55%, transparent)); } }
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html[data-motion="on"] .fw-moment.in-view .fw-found-moment .fw-icon { --fw-tone: var(--fw-mint); animation: fw-glow 6s ease-in-out infinite; }
  html[data-motion="on"] .fw-signal-system.in-view .fw-signals .fw-icon,
  html[data-motion="on"] .fw-reuse-map.in-view .fw-destinations .fw-icon { animation: fw-glow 10s ease-in-out infinite; animation-delay: calc(var(--fw-step) * 1.6s); }
  html[data-motion="on"] .fw-signal-system.in-view .fw-score-junction::after { animation: fw-signal 4s ease-in-out infinite; }
}
@media (max-width: 1050px) {
  .fw-refinements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fw-intro { grid-template-columns: 1fr; }
  .fw-moment { max-width: 540px; width: 100%; margin-block: 0; }
  .fw-signals, .fw-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-reuse-branches, .fw-moment-node::after { display: none; }
  .fw-destinations { margin-top: 28px; }
}
@media (max-width: 760px) {
  .fw-intro, .fw-scenarios { grid-template-columns: 1fr; gap: 32px; }
  .case-framewise .fw-hero { padding-bottom: 40px; }
  .fw-demo-heading { flex-wrap: wrap; gap: 8px; }
  .fw-demo-heading .case-kicker { font-size: 10px; }
  .fw-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .fw-refinements { gap: 28px; }
  .fw-takeaway { font-size: 22px; }
  .fw-activity-comparison { gap: 20px; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); }
  .fw-sampling, .fw-build-story { grid-template-columns: 1fr; gap: 28px; }
  .fw-build-number { padding: 24px; }
  .fw-sampling-copy > strong { font-size: 54px; }
  .fw-build-loop { grid-template-columns: 1fr; gap: 24px; }
  .fw-build-loop li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 16px; }
  .fw-build-loop .fw-icon { grid-row: span 2; align-self: center; margin: 0; }
  .fw-build-loop li > span { grid-column: 2; }
  .fw-build-loop li:not(:last-child)::after { content: "\2193"; right: auto; top: auto; left: calc(50% - 10px); bottom: -23px; }
  .home-page .framewise-cover { padding: 20px; }
}
@media (max-width: 599px) {
  .fw-activity-comparison, .fw-question-shift, .fw-signals, .fw-refinements, .fw-destinations { grid-template-columns: 1fr; }
  .fw-activity-comparison { gap: 12px; }
  .fw-not-equal { font-size: 36px; }
  .fw-question-shift > .fw-icon { justify-self: center; transform: rotate(90deg); }
  .fw-question-shift { gap: 16px; }
  .fw-composite, .fw-moment-node { padding: 20px; gap: 16px; }
  .fw-reflection, .fw-human-checkpoint { gap: 16px; align-items: flex-start; }
  .fw-human-checkpoint { padding: 20px; }
  .fw-reflection p, .fw-human-checkpoint p { font-size: 19px; }
  .fw-destinations li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
  .fw-destinations .fw-icon { grid-row: span 2; align-self: center; margin: 0; }
  .fw-destinations span { grid-column: 2; }
}
@media (forced-colors: active) {
  .case-page.case-framewise { --fw-tone: CanvasText; --fw-sky: CanvasText; --fw-mint: CanvasText; --fw-warm: CanvasText; --case-accent: CanvasText; }
  .fw-moment-strip > span, .fw-signals li, .fw-composite, .fw-moment-node, .fw-destinations li, .fw-human-checkpoint, .fw-build-number { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .fw-score-junction, .fw-moment-node::after, .fw-reuse-branches::before, .fw-reuse-branches::after { background: CanvasText; }
  .fw-reuse-branches { border-color: CanvasText; }
  .fw-demo video, .fw-chapters a, .fw-walkthrough, .fw-refinements { border-color: CanvasText; }
}
@media print {
  .case-page.case-framewise { --case-accent: #333; --fw-tone: #333; --fw-sky: #333; --fw-mint: #333; --fw-warm: #333; }
  .fw-moment-strip > span, .fw-signals li, .fw-composite, .fw-moment-node, .fw-destinations li, .fw-human-checkpoint, .fw-build-number { background: transparent; border-color: #aaa; }
  .fw-reuse-branches, .fw-moment-node::after, .fw-demo-link { display: none; }
  .fw-signals li, .fw-activity-side, .fw-sampling, .fw-destinations li, .fw-build-number, .fw-build-loop li { break-inside: avoid; }
  .fw-demo video, .fw-chapters { display: none; }
  .fw-walkthrough::details-content { content-visibility: visible; height: auto; }
  .fw-walkthrough summary::after { display: none; }
  .fw-intro, .fw-scenarios, .fw-refinements, .fw-build-story { display: block; }
  .fw-scenarios > *, .fw-refinements > *, .fw-build-story > * { margin-top: 24px; }
}
