/* ============================================================
   Aspect V3 - COA library hero, round 3 (v3/coa-hero.mjs + .js)
   Full dark hero, Summit structure, Aspect navy/azure.
   MOTION SPEC (motion allowed, first visit of the session, not QR links)
     0     intro covers the hero: viewfinder corners close in (460ms, out-expo)
     200   Aspect mark resolves out of blur (360ms)
     300   light bar sweeps the frame twice (2 x 900ms, in-out)
     450   status lines type in, 310ms apart, checks land 280ms after each
     350   progress 0 -> 100% (1500ms), counter in step
     1950  intro opens outward: corners scale out, panel fades + blurs (520ms)
     2050  copy blur-rises, 70ms stagger (crumb, eyebrow, h1, lede, search, stats, card)
     2500  card: purity counts up to the printed value (1600ms, out-cubic), meter fills
     loop  beam sweeps the card every 3.6s; lots cycle every 6.5s (segments fill), pause on
           hover/focus/offscreen/hidden tab or the pause button (WCAG 2.2.2)
   Repeat visit / QR link: no intro, copy rises at once. Reduced motion: no intro, no beam,
   no count, static ticker; values are in the HTML from the start.
   ============================================================ */
.ch { position: relative; isolation: isolate; overflow: clip; color: #f2f5fb; background: #040c22;
  padding: clamp(28px, 4vw, 56px) 0 calc(clamp(56px, 7vw, 96px) + 44px); }
.ch-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 30%, rgba(21, 97, 220, .42) 0%, rgba(11, 39, 99, .35) 40%, transparent 72%), radial-gradient(50% 60% at 8% 100%, rgba(21, 97, 220, .18), transparent 70%), linear-gradient(180deg, #061331 0%, #040c22 100%); }
.ch-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(140, 192, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 192, 255, .07) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(80% 70% at 60% 40%, #000 20%, transparent 80%); }
.ch-glow { position: absolute; width: 520px; height: 520px; right: 6%; top: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(79, 141, 255, .28), transparent 65%); filter: blur(10px); }
.ch-glow-b { width: 380px; height: 380px; right: auto; left: -6%; top: auto; bottom: -10%; background: radial-gradient(circle, rgba(21, 97, 220, .2), transparent 65%); }

.ch-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: clamp(560px, 70svh, 760px); }

/* ---------- copy ---------- */
.ch .crumb { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: #93a1bd; margin: 0 0 22px; }
.ch .crumb a { color: #c3cde0; text-decoration: none; } .ch .crumb .sep { color: #5a6a8a; }
.ch-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(140, 192, 255, .22); background: rgba(255, 255, 255, .04);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c3cde0; }
.ch-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5ee6a6; box-shadow: 0 0 10px #5ee6a6; }
.ch-h1 { margin: 22px 0 0; font-family: var(--font-sans); font-weight: 600; font-size: clamp(2.7rem, 1.2rem + 4.4vw, 5.4rem); line-height: .96; letter-spacing: -.055em; color: #fff; text-wrap: balance; }
.ch-h1 .cx-tone { display: block; padding-bottom: .06em; background: linear-gradient(92deg, #8cc0ff 0%, #4f8dff 55%, #8cc0ff 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); line-height: 1.6; color: #c3cde0; }
.ch-search { display: flex; align-items: center; gap: 12px; margin-top: 30px; max-width: 520px; height: 58px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(140, 192, 255, .24) !important; background: rgba(255, 255, 255, .06) !important; color: #93a1bd; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color 200ms, box-shadow 200ms; }
.ch-search svg { width: 20px; height: 20px; flex: none; }
.ch-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #fff; font: 500 15px var(--font-sans); outline: none; }
.ch-search input::placeholder { color: #93a1bd; }
.ch-search:focus-within { border-color: #8cc0ff !important; box-shadow: 0 0 0 4px rgba(79, 141, 255, .25); }
.ch-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 34px 0 0; }
.ch-stats div { padding: 0 26px; border-left: 1px solid rgba(140, 192, 255, .18); } .ch-stats div:first-child { padding-left: 0; border-left: 0; }
.ch-stats dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #93a1bd; }
.ch-stats dd { margin: 8px 0 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- stage + card ---------- */
.ch-stage { position: relative; padding-top: 56px; }
.ch-paper { position: absolute; z-index: 0; top: 0; right: -30px; width: 300px; aspect-ratio: 612 / 792; border-radius: 4px; overflow: hidden; rotate: 7deg; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: .92; transition: opacity 380ms; }
.ch-paper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ch-paper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(4, 12, 34, .35)); }
.ch-card { position: relative; z-index: 1; padding: 26px 28px 24px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(24, 56, 128, .78) 0%, rgba(10, 26, 66, .9) 55%, rgba(6, 17, 46, .94) 100%);
  border: 1px solid rgba(140, 192, 255, .24); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ch-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ch-a, 0deg), transparent 0 70%, rgba(140, 192, 255, .9) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.ch-k { margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #93a1bd; }
.ch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-lablogo { display: inline-grid; place-items: center; height: 38px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.ch-lablogo img { height: 26px; width: auto; }
.ch-ver { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(94, 230, 166, .1); border: 1px solid rgba(94, 230, 166, .32); color: #7cf0b5; font: 600 12.5px var(--font-sans); }
.ch-ver-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee6a6; box-shadow: 0 0 8px #5ee6a6; }
.ch-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 22px; }
.ch-who { min-width: 0; }
.ch-sub { margin: 0; font-size: 13px; color: #c3cde0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name { margin: 4px 0 0; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: #fff; }
.ch-lot { margin: 8px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: #93a1bd; white-space: nowrap; }
.ch-read { flex: none; text-align: right; }
.ch-pur { margin: 6px 0 0; line-height: .9; }
.ch-pur-v { display: block; font-size: clamp(3rem, 2rem + 2.6vw, 4.5rem); font-weight: 600; letter-spacing: -.05em; color: #7cf0b5; font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(94, 230, 166, .38); }
.ch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ch-meter { position: relative; height: 6px; margin-top: 30px; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.ch-meter-fill { position: absolute; inset: 0 auto 0 0; width: var(--m, 0%); border-radius: inherit; background: linear-gradient(90deg, #1561dc, #4f8dff 60%, #7cf0b5); box-shadow: 0 0 14px rgba(124, 240, 181, .45); }
.ch-meter-spec { position: absolute; left: 80%; top: -7px; bottom: -7px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.ch-meter-spec i { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; font-style: normal; white-space: nowrap; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #93a1bd; }
.ch-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 24px 0 0; }
.ch-grid2 dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #93a1bd; }
.ch-grid2 dd { margin: 5px 0 0; font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-grid2 .ch-ok { color: #7cf0b5; }
.ch-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ch-pass { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: #7cf0b5; }
.ch-pass svg, .ch-term svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ch-open { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #071a45; font: 600 14px var(--font-sans); cursor: pointer; box-shadow: 0 10px 30px -12px rgba(140, 192, 255, .7); transition: background-color 180ms; }
.ch-open svg, .ch-play svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-beam { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.ch-beam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; opacity: 0; translate: 0 -100%;
  background: linear-gradient(180deg, transparent 72%, rgba(140, 192, 255, .1) 94%, rgba(190, 220, 255, .95) 99.6%, transparent 100%); }
.ch-beam::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%); }

/* field swap between lots */
.ch-card [data-f], .ch-lablogo img { transition: opacity 260ms, filter 260ms, translate 260ms; }
.ch-card.is-out [data-f], .ch-card.is-out .ch-lablogo img { opacity: 0; filter: blur(6px); translate: 0 6px; }
.ch-stage.is-out .ch-paper { opacity: 0; }

/* controls */
.ch-ctl { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ch-segs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ch-segs button { display: block; width: 100%; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.ch-segs i { position: relative; display: block; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.ch-segs i::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; scale: 0 1; background: #8cc0ff; }
.ch-segs .is-done i::after, .ch-segs [aria-current] i::after { scale: 1 1; }
.ch-play { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.ch-ic-play { display: none; } .ch-play[aria-pressed="true"] .ch-ic-play { display: block; } .ch-play[aria-pressed="true"] .ch-ic-pause { display: none; }

/* ticker */
.ch-tick { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; overflow: hidden; display: flex; align-items: center; border-top: 1px solid rgba(140, 192, 255, .1); background: rgba(4, 12, 34, .6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ch-tick-run { display: flex; flex: none; white-space: nowrap; }
.ch-tick span { margin-right: 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #93a1bd; }
.ch-tick b { margin-right: 10px; font-weight: 500; color: #f2f5fb; } .ch-tick i { margin-left: 10px; font-style: normal; color: #7cf0b5; }

/* focus */
.ch :is(a, button):focus-visible { outline: 2px solid #8cc0ff; outline-offset: 3px; border-radius: 8px; }
.ch .ch-open:focus-visible, .ch .ch-play:focus-visible { border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .ch .crumb a:hover { color: #fff; }
  .ch-open:hover { background: #e9f2ff; }
  .ch-play:hover { background: rgba(255, 255, 255, .14); }
  .ch-segs button:hover i { background: rgba(255, 255, 255, .34); }
}

/* ---------- intro (html.chx-intro is set in <head> before first paint) ---------- */
.ch-intro { display: none; }
html.chx-intro .ch-intro { display: grid; place-items: center; position: absolute; inset: 0; z-index: 10; background: radial-gradient(60% 60% at 50% 45%, #0a1f52 0%, #040c22 70%); }
.ch-intro-core { display: grid; justify-items: center; gap: 26px; translate: 0 -4%; }
.ch-vf { position: relative; display: grid; place-items: center; width: 184px; height: 112px; }
.ch-vf i { position: absolute; width: 22px; height: 22px; border: 0 solid #4f8dff; filter: drop-shadow(0 0 6px rgba(79, 141, 255, .8)); }
.ch-vf-tl { left: 0; top: 0; border-left-width: 2px !important; border-top-width: 2px !important; }
.ch-vf-tr { right: 0; top: 0; border-right-width: 2px !important; border-top-width: 2px !important; }
.ch-vf-bl { left: 0; bottom: 0; border-left-width: 2px !important; border-bottom-width: 2px !important; }
.ch-vf-br { right: 0; bottom: 0; border-right-width: 2px !important; border-bottom-width: 2px !important; }
.ch-vf-mark { width: 104px; height: auto; }
.ch-vf-bar { position: absolute; left: 8px; right: 8px; top: 10%; height: 2px; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, transparent, #8cc0ff 20%, #fff 50%, #8cc0ff 80%, transparent); box-shadow: 0 0 18px 4px rgba(79, 141, 255, .7); }
.ch-term { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 300px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #c3cde0; }
.ch-term li { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ch-term li span { display: inline-block; white-space: nowrap; }
.ch-term li span::before { content: "> "; color: #4f8dff; }
.ch-term svg { color: #5ee6a6; }
.ch-term li:last-child { color: #7cf0b5; }
.ch-prog { position: relative; display: block; width: 300px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.ch-prog i { position: absolute; inset: 0; transform-origin: 0 50%; scale: 0 1; background: linear-gradient(90deg, #1561dc, #8cc0ff); box-shadow: 0 0 10px #4f8dff; }
.ch-pct { margin-top: -16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: #93a1bd; }
.ch-pct b { color: #fff; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  html.chx-go .ch-vf i { animation: ch-vf-in 460ms cubic-bezier(.16, 1, .3, 1) both; }
  html.chx-go .ch-vf-mark { animation: ch-blur-in 360ms cubic-bezier(.2, .7, .2, 1) 200ms both; }
  html.chx-go .ch-vf-bar { animation: ch-vf-scan 900ms cubic-bezier(.45, 0, .55, 1) 300ms 2 both; }
  html.chx-go .ch-term li { animation: ch-show 1ms linear both; }
  html.chx-go .ch-term li span { animation: ch-type 280ms steps(26, end) both; }
  html.chx-go .ch-term svg { animation: ch-pop 260ms cubic-bezier(.2, .7, .2, 1.4) both; }
  html.chx-go .ch-term li:nth-child(1), html.chx-go .ch-term li:nth-child(1) span { animation-delay: 450ms; } html.chx-go .ch-term li:nth-child(1) svg { animation-delay: 730ms; }
  html.chx-go .ch-term li:nth-child(2), html.chx-go .ch-term li:nth-child(2) span { animation-delay: 760ms; } html.chx-go .ch-term li:nth-child(2) svg { animation-delay: 1040ms; }
  html.chx-go .ch-term li:nth-child(3), html.chx-go .ch-term li:nth-child(3) span { animation-delay: 1070ms; } html.chx-go .ch-term li:nth-child(3) svg { animation-delay: 1350ms; }
  html.chx-go .ch-term li:nth-child(4), html.chx-go .ch-term li:nth-child(4) span { animation-delay: 1380ms; } html.chx-go .ch-term li:nth-child(4) svg { animation-delay: 1660ms; }
  html.chx-go .ch-prog i { animation: ch-prog 1500ms cubic-bezier(.65, 0, .35, 1) 350ms both; }
  html.chx-out .ch-intro { animation: ch-intro-out 520ms cubic-bezier(.7, 0, .84, 0) both; }
  html.chx-out .ch-vf { animation: ch-vf-out 520ms cubic-bezier(.7, 0, .84, 0) both; }

  html.chx-pre .ch-r { opacity: 0; translate: 0 22px; filter: blur(10px); }
  .ch-r { transition: opacity 700ms cubic-bezier(.2, .7, .2, 1), translate 700ms cubic-bezier(.2, .7, .2, 1), filter 700ms cubic-bezier(.2, .7, .2, 1); }
  .ch-copy > .ch-r:nth-child(2) { transition-delay: 70ms; } .ch-copy > .ch-r:nth-child(3) { transition-delay: 140ms; }
  .ch-copy > .ch-r:nth-child(4) { transition-delay: 210ms; } .ch-copy > .ch-r:nth-child(5) { transition-delay: 280ms; }
  .ch-copy > .ch-r:nth-child(6) { transition-delay: 350ms; } .ch-stage.ch-r { transition-delay: 240ms; transition-duration: 900ms; }
  .ch-h1 .cx-tone { animation: ch-tone 1600ms cubic-bezier(.4, 0, .2, 1) 600ms both; }
  html.chx-pre .ch-h1 .cx-tone { animation: none; }

  .ch-card::before { animation: ch-spin 7s linear infinite; }
  .ch-run .ch-beam::before { animation: ch-beam 3600ms cubic-bezier(.45, 0, .25, 1) 400ms infinite; }
  .ch-run .ch-beam::after { animation: ch-sheen 3600ms cubic-bezier(.45, 0, .25, 1) 400ms infinite; }
  .ch-meter-fill { transition: width 1600ms cubic-bezier(.22, .9, .3, 1); }
  .ch-segs [aria-current] i::after { scale: 0 1; animation: ch-seg var(--ch-dwell, 6500ms) linear both; }
  .ch-stage.is-paused .ch-segs [aria-current] i::after, .ch-stage.is-hold .ch-segs [aria-current] i::after { animation-play-state: paused; }
  .ch-tick-run { animation: ch-tick 70s linear infinite; }
  .ch-live { animation: ch-pulse 2.2s ease-out infinite; }
  .ch-ver-dot { animation: ch-pulse 2.2s ease-out infinite; }
}
html.chx-intro:not(.chx-go) .ch-term li, html.chx-intro:not(.chx-go) .ch-vf-mark { opacity: 0; }
@property --ch-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ch-spin { to { --ch-a: 360deg; } }
@keyframes ch-vf-in { from { opacity: 0; scale: 1.9; } }
@keyframes ch-blur-in { from { opacity: 0; filter: blur(10px); scale: .92; } }
@keyframes ch-vf-scan { 0% { top: 10%; opacity: 0; } 15% { opacity: 1; } 50% { top: 88%; } 85% { opacity: 1; } 100% { top: 10%; opacity: 0; } }
@keyframes ch-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes ch-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ch-pop { from { opacity: 0; scale: .4; } }
@keyframes ch-prog { to { scale: 1 1; } }
@keyframes ch-intro-out { to { opacity: 0; filter: blur(8px); visibility: hidden; } }
@keyframes ch-vf-out { to { scale: 3.2; opacity: 0; } }
@keyframes ch-tone { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ch-beam { 0% { translate: 0 -100%; opacity: 0; } 8% { opacity: 1; } 62% { translate: 0 0; opacity: 1; } 72%, 100% { translate: 0 0; opacity: 0; } }
@keyframes ch-sheen { 0%, 20% { opacity: 0; translate: -60% 0; } 45% { opacity: 1; } 70%, 100% { opacity: 0; translate: 60% 0; } }
@keyframes ch-seg { to { scale: 1 1; } }
@keyframes ch-tick { to { translate: -50% 0; } }
@keyframes ch-pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 230, 166, .55); } 100% { box-shadow: 0 0 0 9px rgba(94, 230, 166, 0); } }

/* ---------- tablet + phone: copy, then the card ---------- */
@media (max-width: 1023px) {
  .ch-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 36px; }
  .ch-stage { max-width: 600px; width: 100%; padding-top: 40px; }
  .ch-paper { width: 46%; right: -6px; rotate: 6deg; }
  html.chx-intro .ch-intro { place-items: start center; }
  .ch-intro-core { translate: 0 0; margin-top: min(26svh, 220px); }
}
@media (max-width: 599px) {
  .ch { padding-top: 22px; }
  .ch .crumb { margin-bottom: 16px; }
  .ch-h1 { margin-top: 18px; }
  .ch-search { height: 54px; margin-top: 24px; }
  .ch-search input { font-size: 16px; }
  .ch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; margin-top: 28px; }
  .ch-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ch-card { padding: 20px 18px 18px; border-radius: 22px; }
  .ch-main { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; }
  .ch-read { text-align: left; }
  .ch-grid2 { gap: 14px 16px; }
  .ch-card-foot { flex-direction: column; align-items: stretch; }
  .ch-open { justify-content: center; }
  .ch-term { min-width: 0; width: min(300px, 82vw); font-size: 11px; }
  .ch-prog { width: min(300px, 82vw); }
}
@media (prefers-reduced-motion: reduce) { .ch-tick { overflow-x: auto; } }
@media (min-width: 1024px) {
  .ch-vf { width: 252px; height: 152px; } .ch-vf i { width: 28px; height: 28px; }
  .ch-vf-mark { width: 150px; }
  .ch-term { min-width: 400px; font-size: 13px; gap: 10px; }
  .ch-prog { width: 400px; }
  .ch-intro-core { gap: 30px; }
}
