/* One physical card at every viewport size. Its two faces always share the same grid area. */
.value-story { --value-brand: #556b4d; --value-dark: oklch(25% .037 150); --value-cream: oklch(97% .018 100); --value-sage: oklch(89% .033 130); --value-preferred-height: clamp(340px, 52svh, 450px); position: relative; overflow-anchor: none; margin: 8px 0 56px; }
.value-stage { position: relative; isolation: isolate; }
.value-stage-inner { position: relative; }
.value-perspective { perspective: 1900px; }
.value-card { position: relative; display: grid; grid-template-areas: 'face'; min-height: var(--value-preferred-height); transform-style: preserve-3d; }
.value-face { grid-area: face; display: grid; grid-template-rows: max-content max-content minmax(var(--value-source-row, auto), 1fr); gap: 18px; padding: 30px 36px; min-width: 0; border: 1px solid oklch(61% .04 140 / .25); border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 16px 30px oklch(22% .035 150 / .09), inset 0 1px 0 oklch(97% .018 100 / .15); }
.value-problem { color: var(--value-cream); background: var(--value-dark); transform: translateZ(1px); }
.value-effect { color: var(--ink); background: var(--value-sage); transform: rotateY(180deg) translateZ(1px); }
.value-eyebrow { font-size: 10px; letter-spacing: .13em; line-height: 1.4; font-weight: 800; }
.value-problem .value-eyebrow { color: oklch(82% .034 132); }
.value-effect .value-eyebrow { color: oklch(43% .045 140); }
.value-face h2, .value-face h3 { max-width: 790px; margin-top: 12px; font: 800 clamp(30px, 3.35vw, 46px)/1.08 var(--font); letter-spacing: -.045em; text-wrap: pretty; }
.value-effect h3 { max-width: 850px; }
.value-lede { max-width: 760px; margin-top: 12px; font-size: 16px; line-height: 1.45; }
.value-problem .value-lede { color: oklch(84% .018 130); }
.value-effect .value-lede { color: oklch(39% .035 145); }
.value-statistics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; }
.value-stat { display: flex; flex-direction: column; padding-top: 10px; border-top: 1px solid oklch(80% .035 130 / .3); min-width: 0; }
.value-stat dd { display: flex; align-items: baseline; gap: .025em; order: -1; margin: 0; min-height: 1.12em; font-size: clamp(64px, 7vw, 94px); line-height: 1.05; font-weight: 650; letter-spacing: -.05em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.value-digits { position: relative; display: inline-block; font: inherit; }
.value-count { display: none; }
.value-stat.is-count-ready dd { opacity: var(--value-number-progress, 1); translate: 0 calc((1 - var(--value-number-progress, 1)) * 12px); }
.value-stat.is-count-ready dt { opacity: var(--value-label-progress, 1); translate: 0 calc((1 - var(--value-label-progress, 1)) * 6px); }
.value-stat.is-count-ready .value-digits-source { opacity: 0; }
.value-stat.is-count-ready .value-count { display: block; position: absolute; inset: 0; text-align: right; pointer-events: none; user-select: none; -webkit-user-select: none; }
.value-stat.is-count-ready .value-stat-icon > * { stroke-dasharray: 1; stroke-dashoffset: var(--value-stroke-offset, 0); }
.value-prefix { letter-spacing: -.025em; }
.value-currency { font-size: .72em; align-self: flex-start; margin-top: .09em; margin-right: .025em; font-weight: 650; }
.value-approx { font-size: .5em; align-self: center; margin-right: .07em; }
.value-unit { letter-spacing: -.025em; font-weight: 650; }
.value-percent { font-size: .62em; margin-left: .045em; }
.value-unit-word { font-size: .28em; margin-left: .15em; font-weight: 700; }
.value-stat dt { margin-top: 8px; font-size: 14px; line-height: 1.4; color: oklch(87% .022 130); }
.value-stat-label { display: flex; align-items: flex-start; gap: 7px; max-width: 270px; }
.value-stat-icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; opacity: .88; }
.value-benchmarks .value-stat { border-color: oklch(48% .035 145 / .3); }
.value-benchmarks dt { color: var(--ink); }
.value-benchmarks .value-stat-label { font-weight: 800; }
.value-stat-note { display: block; max-width: 290px; margin-top: 5px; font-size: 12px; line-height: 1.45; color: oklch(39% .035 145); }
.value-source { align-self: end; margin: 0; font-size: 11px; color: oklch(77% .022 130); line-height: 1.45; }
.value-effect .value-source { color: oklch(39% .035 145); }
.value-method { display: block; margin-top: 3px; }
.value-source a { text-decoration: underline; text-underline-offset: 3px; }
.value-source a:focus-visible { outline-color: var(--value-cream); }
.value-effect .value-source a:focus-visible { outline-color: var(--ink); }
/* Native one-card fallback if scripting is unavailable. Never two stacked panels. */
.value-fallback-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.value-fallback-control { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.value-fallback-control span:last-child { display: none; }
.value-fallback-input:focus-visible + .value-fallback-control { outline: 3px solid var(--leaf); outline-offset: 4px; }
html:not(.value-motion) .value-fallback-input:checked ~ .value-perspective .value-card { transform: rotateY(-180deg); }
.value-fallback-input:checked + .value-fallback-control span:first-child { display: none; }
.value-fallback-input:checked + .value-fallback-control span:last-child { display: inline; }
.value-motion :is(.value-fallback-input, .value-fallback-control) { display: none; }
/* Measure intrinsic content while preserving the shared physical card. */
.value-story.is-measuring .value-card { min-height: 0 !important; transform: none !important; }
.value-story.is-measuring .value-face { grid-template-rows: max-content max-content max-content !important; align-content: start !important; }
.value-motion .value-story { height: var(--value-scene-height, calc(100svh + var(--value-preferred-height) + 32px)); }
.value-motion .value-stage { position: sticky; top: var(--value-stage-top, calc(var(--chow-nav-height, 82px) + 16px)); height: calc(var(--value-frame-height, var(--value-preferred-height)) + 32px); padding-block: 16px; overflow: clip; }
.value-motion .value-story:not(.has-reading-pan) .value-stage { overflow: visible; }
.value-motion .value-story:not(.has-entered) .value-perspective { opacity: 0; transform: translateY(24px); }
.value-motion .value-face:not(.has-content-entered) .value-face-head > *, .value-motion .value-face:not(.has-content-entered) .value-source { opacity: 0; }
.value-source:focus-within { opacity: 1 !important; transform: none !important; }
.value-motion .value-perspective { height: var(--value-frame-height, var(--value-preferred-height)); }
.value-motion .value-card { transform: translate3d(0, calc(var(--value-pan, 0px) + var(--value-lift, 0px)), 0) scale(var(--value-scale, 1)) rotateX(var(--value-tilt, 0deg)) rotateY(var(--value-turn, 0deg)); visibility: hidden; }
.value-motion .value-story.is-ready .value-card { visibility: visible; }
.value-story.is-active .value-card { will-change: transform; }
.bao-walkway { position: relative; height: 86px; margin: 0 0 22px; }
.bao-walkway .bao-snack { top: auto; bottom: 0; }
@media (min-width: 761px) and (max-height: 820px) {
  .value-face { padding: 25px 30px; gap: 16px; }
  .value-face h2, .value-face h3 { font-size: 35px; }
  .value-lede { font-size: 15px; }
  .value-stat dd { font-size: 74px; }
  .value-stat dt { font-size: 13px; }
  .value-source { font-size: 10.5px; }
}
@media (max-width: 760px) {
  .value-story { --value-preferred-height: 500px; margin: 0 0 38px; }
  .value-face { padding: 22px; gap: 18px; border-radius: 21px; grid-template-rows: max-content max-content minmax(max-content, 1fr); }
  .value-source { align-self: end; }
  .value-eyebrow { font-size: 9px; letter-spacing: .1em; }
  .value-face h2, .value-face h3 { font-size: 28px; line-height: 1.1; margin-top: 10px; }
  .value-lede { font-size: 14px; line-height: 1.45; margin-top: 10px; }
  .value-statistics { display: block; }
  .value-stat { display: grid; grid-template-columns: clamp(100px, 30vw, 120px) 1fr; align-items: center; gap: 12px; padding-block: 9px; }
  .value-stat dd { grid-column: 1; grid-row: 1; font-size: clamp(44px, 12vw, 54px); }
  .value-stat dt { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; }
  .value-stat-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .value-stat-label { gap: 6px; }
  .value-stat-note { font-size: 12px; line-height: 1.4; margin-top: 5px; }
  .value-source { font-size: 10.5px; line-height: 1.45; }
  .bao-walkway { height: 74px; margin-bottom: 20px; }
}
@media (max-width: 360px) { .value-face { padding: 20px; } .value-face h2, .value-face h3 { font-size: 26px; } .value-stat { gap: 10px; } }
@media (min-width: 600px) and (max-width: 760px) and (max-height: 600px) {
  .value-story { --value-preferred-height: 0px; }
  .value-face { padding: 20px 24px; gap: 15px; }
  .value-statistics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .value-stat { display: flex; padding-top: 8px; }
  .value-stat dd { font-size: 48px; }
  .value-stat dt { margin-top: 6px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .value-stat-icon { transition: transform .25s var(--ease), opacity .25s; }
  .value-stat:hover .value-stat-icon { transform: translateY(-2px) rotate(-5deg); opacity: 1; }
  .value-stat dd { transition: transform .25s var(--ease); }
  .value-stat:hover dd { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .value-stat.is-count-ready dd, .value-stat.is-count-ready dt { opacity: 1; translate: none; }
  .value-motion .value-story .value-perspective { opacity: 1 !important; transform: none !important; }
  .value-motion .value-story .value-face .value-face-head > *, .value-motion .value-story .value-source { opacity: 1 !important; transform: none !important; }
  .value-stat.is-count-ready .value-digits-source { opacity: 1; }
  .value-stat.is-count-ready .value-count { display: none; }
  .value-stat.is-count-ready .value-stat-icon > * { stroke-dashoffset: 0; }
  .value-motion .value-card { transform: translate3d(0, var(--value-pan, 0px), 0) !important; }
  .value-motion .value-face { transform: none; }
  .value-motion .value-effect { visibility: hidden; pointer-events: none; }
  .value-motion .value-story[data-value-side='effect'] .value-effect { visibility: visible; pointer-events: auto; }
  .value-motion .value-story[data-value-side='effect'] .value-problem { visibility: hidden; pointer-events: none; }
  html:not(.value-motion) .value-card { transform: none !important; }
  html:not(.value-motion) .value-effect { visibility: hidden; }
  html:not(.value-motion) .value-fallback-input:checked ~ .value-perspective .value-effect { transform: none; visibility: visible; }
  html:not(.value-motion) .value-fallback-input:checked ~ .value-perspective .value-problem { visibility: hidden; }
}
@media print {
  .value-stat.is-count-ready dd, .value-stat.is-count-ready dt { opacity: 1; translate: none; }
  .value-motion .value-story .value-perspective { opacity: 1 !important; transform: none !important; }
  .value-motion .value-story .value-face .value-face-head > *, .value-motion .value-story .value-source { opacity: 1 !important; transform: none !important; }
  .value-stat.is-count-ready .value-digits-source { opacity: 1; }
  .value-stat.is-count-ready .value-count { display: none; }
  .value-stat.is-count-ready .value-stat-icon > * { stroke-dashoffset: 0; }
  .value-motion .value-story { height: auto !important; }
  .value-motion .value-stage { position: static !important; height: auto !important; padding: 0 !important; overflow: visible !important; }
  .value-motion .value-perspective { height: auto !important; }
  .value-story .value-card { display: block !important; transform: none !important; visibility: visible !important; }
  .value-story .value-face { display: block !important; position: relative !important; transform: none !important; visibility: visible !important; break-inside: avoid; margin-bottom: 20px; }
  .value-story .value-fallback-control { display: none !important; }
  .value-story .value-statistics { margin-block: 20px; }
  .value-story [data-value-back-head], .value-story [data-value-stat], .value-story [data-value-back-stat] { opacity: 1 !important; transform: none !important; }
}
.value-viewport-meter { position: fixed; top: 0; left: 0; width: 0; height: 100svh; visibility: hidden; pointer-events: none; contain: strict; }
/* Keyboard users get a native flip control on focus; it does not add visible page chrome. */
.value-motion .value-fallback-input { display: block; }
.value-motion .value-fallback-control { display: inline-flex; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.value-motion .value-fallback-input:focus-visible + .value-fallback-control { z-index: 3; top: 8px; right: 8px; width: auto; height: auto; min-height: 44px; padding: 8px 15px; margin: 0; clip-path: none; overflow: visible; background: var(--paper); }
@media print { .value-viewport-meter, .value-motion .value-fallback-control { display: none !important; } }
