/* The picture articles (server/site.js exploreArticle, server/scenes.js, public/explore.js). Loaded after
   home.css and quiz.css, whose .viz frame, verse, takeaway box and claim rows (.cl) it reuses.
   As everywhere: normal styles are the finished look; keyframes say where things start; .play starts them. */

.ex { position: relative; z-index: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: 100px var(--pad-r) 72px var(--pad); }
.ex-back { display: inline-block; margin-bottom: 30px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-soft); }
.ex-back::before { content: "←  "; }
.ex-back:hover { color: var(--on-dark); }
.ex-head { margin-bottom: 44px; }
.ex-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 20px; background: rgba(233, 196, 106, .16); color: var(--glow); animation: qz-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.ex-ic svg { width: 36px; height: 36px; }
.ex-head .kicker { margin-bottom: 12px; }
.ex-head h1 { margin: 0 0 18px; font-family: var(--disp); font-weight: 400; font-size: clamp(44px, 10vw, 76px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; animation: qz-rise .6s ease .1s both; }
.ex-lede { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.8vw, 22px); line-height: 1.55; color: var(--on-dark-soft); animation: qz-rise .6s ease .2s both; }

.scene { margin: 0 0 60px; }
.sc-text { margin-top: 22px; }
.sc-text h2 { margin: 0 0 8px; font-family: var(--disp); font-weight: 400; font-size: clamp(28px, 5.4vw, 36px); line-height: 1.1; color: var(--glow-2); }
.sc-text p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 2.4vw, 20px); line-height: 1.6; }
.ex.js .scene:not(.play) .viz, .ex.js .scene:not(.play) .sc-text { opacity: 0; }
.play .sc-text { animation: qz-rise .6s ease .5s both; }

.ex-end { margin: 0 0 40px; }
.ex-next {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin: 0 0 28px; padding: 20px 22px;
  border-radius: 20px; border: 2px solid var(--line-dark); text-decoration: none; transition: border-color .2s ease;
}
.ex-next:hover { border-color: var(--glow); }
.ex-next span { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-soft); }
.ex-next b { grid-column: 1; font-family: var(--disp); font-weight: 400; font-size: 28px; line-height: 1.1; }
.ex-next i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 24px; color: var(--glow); }
.is-explore .quizcard { margin-top: 0; border: 1px solid var(--line-dark); }

/* stat: one big number */
.st { position: relative; display: grid; justify-items: center; gap: 8px; padding: 56px 20px 48px; text-align: center; overflow: hidden; }
.st-ring { position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 1.5px solid rgba(233, 196, 106, .28); }
.st-ring.two { width: 320px; height: 320px; margin: -160px 0 0 -160px; border-color: rgba(233, 196, 106, .14); }
.st-ic { position: relative; width: 44px; height: 44px; color: var(--glow); }
.st-ic svg { width: 100%; height: 100%; }
.st-n { position: relative; font-family: var(--disp); font-weight: 400; font-size: clamp(56px, 15vw, 92px); line-height: 1; color: var(--glow-2); font-variant-numeric: tabular-nums; }
.st-l { position: relative; max-width: 22rem; font-size: 15px; line-height: 1.4; color: var(--on-dark-soft); }
.play .st-ring { animation: st-ring 1.4s cubic-bezier(.2, .8, .3, 1) .2s both; }
.play .st-ring.two { animation-delay: .4s; }
.play .st-n { animation: qz-pop .7s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
.play .st-ic { animation: qz-pop .5s ease both; }
.play .st-l { animation: qz-rise .5s ease .8s both; }
@keyframes st-ring { from { opacity: 0; transform: scale(.2); } }

/* timeline */
.tl-pin, .tl-tick { transform-box: fill-box; transform-origin: center; }
.play .tl-axis { stroke-dasharray: 1; animation: draw .9s ease .1s both; }
.play .tl-tick { animation: b-fade .5s ease .5s both; }
.play .tl-pin { animation: t-drop .65s cubic-bezier(.3, 1.6, .5, 1) calc(.8s + var(--i) * .38s) both; }

/* bars */
.br { display: grid; gap: 16px; padding: 24px 20px 26px; }
.br-t { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.br-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.br-l { font-size: 15px; font-weight: 600; }
.br-v { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--on-dark-soft); }
.br-track { grid-column: 1 / -1; height: 14px; border-radius: 99px; background: rgba(246, 239, 226, .08); overflow: hidden; }
.br-fill { display: block; height: 100%; border-radius: inherit; background: rgba(205, 234, 255, .55); transform-origin: left; }
.br-row.gold .br-l, .br-row.gold .br-v { color: var(--glow-2); }
.br-row.gold .br-fill { background: linear-gradient(90deg, var(--glow), var(--glow-2)); box-shadow: 0 0 18px rgba(233, 196, 106, .5); }
.play .br-fill { animation: br-grow 1.2s cubic-bezier(.3, .8, .2, 1) calc(.3s + var(--i) * .18s) both; }
.play .br-v { animation: b-fade .5s ease calc(1.1s + var(--i) * .18s) both; }
@keyframes br-grow { from { transform: scaleX(0); } }

/* chain: steps one after another */
.ch { list-style: none; margin: 0; padding: 26px 22px; display: grid; gap: 22px; }
.ch-step { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; font-size: clamp(16px, 2.6vw, 18px); font-weight: 600; line-height: 1.35; }
.ch-step + .ch-step::before { content: ""; position: absolute; left: 26px; top: -22px; width: 2px; height: 22px; background: rgba(246, 239, 226, .3); transform-origin: top; }
.ch-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(246, 239, 226, .3); color: var(--on-dark); }
.ch-ic svg { width: 28px; height: 28px; }
.ch-step.gold { color: var(--glow-2); }
.ch-step.gold .ch-ic { border-color: var(--glow); background: var(--glow); color: var(--ink); box-shadow: 0 0 24px rgba(233, 196, 106, .5); }
.play .ch-step { animation: ch-in .55s cubic-bezier(.3, 1.3, .5, 1) calc(.2s + var(--i) * .6s) both; }
.play .ch-step + .ch-step::before { animation: ch-line .3s ease calc(var(--i) * .6s) both; }
@keyframes ch-in { from { opacity: 0; transform: translateX(-18px); } }
@keyframes ch-line { from { transform: scaleY(0); } }

/* versus: the claim rows from quiz.css, with headings and a word in the middle */
.cl-heads { display: grid; grid-template-columns: 1fr 34px 1fr; margin-bottom: -4px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }
.cl-heads span:last-child { grid-column: 3; }
.cl-x.word { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--glow); }
.sc-versus .cl-c { font-size: clamp(13.5px, 3.3vw, 16px); }

/* cards */
.cd { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; }
.cd.cols-2 { grid-template-columns: 1fr 1fr; }
.cd.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cd-card {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 14px; border-radius: 16px;
  background: rgba(246, 239, 226, .05); border: 1.5px solid var(--line-dark);
}
.cd-ic { width: 34px; height: 34px; margin-bottom: 4px; color: var(--glow); }
.cd-ic svg { width: 100%; height: 100%; }
.cd-card b { font-size: clamp(14.5px, 3.4vw, 17px); line-height: 1.25; }
.cd-card span { font-size: clamp(12.5px, 3vw, 14.5px); line-height: 1.4; color: var(--on-dark-soft); }
.cd-card.gold { border-color: var(--glow); background: rgba(233, 196, 106, .14); }
.cd-card.gold b { color: var(--glow-2); }
.cd-mark { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cd-mark svg { width: 16px; height: 16px; stroke-width: 4; }
.cd-mark.check { background: var(--glow); color: var(--ink); }
.cd-mark.x { background: #ff8a7a; color: var(--ink); }
.cd-card:has(.cd-mark.x) { opacity: .78; }
.play .cd-card { animation: qz-pop .5s cubic-bezier(.3, 1.4, .5, 1) calc(.2s + var(--i) * .16s) both; }
.play .cd-mark { animation: ck-stamp .45s cubic-bezier(.3, 1.6, .5, 1) calc(.7s + var(--i) * .3s) both; }
.play .cd-card:has(.cd-mark.x) { animation: qz-pop .5s cubic-bezier(.3, 1.4, .5, 1) calc(.2s + var(--i) * .16s) both, cd-dim .4s ease calc(.7s + var(--i) * .3s) both; }
@keyframes cd-dim { from { opacity: 1; } }

/* dots */
.dt-on { fill: var(--glow-2); transform-box: fill-box; transform-origin: center; }
.play .dt-on { animation: dt-on .4s cubic-bezier(.3, 1.8, .5, 1) calc(.3s + var(--i) * (1.6s / var(--n))) both; }
.play .dt-all { animation: b-fade .6s ease both; }
@keyframes dt-on { from { fill: rgba(246, 239, 226, .22); transform: scale(.4); } 60% { transform: scale(1.7); } }

/* quote */
.qt { position: relative; margin: 0; padding: 34px 26px 28px; }
.qt-mark { position: absolute; top: -6px; left: 14px; font-family: var(--disp); font-style: normal; font-size: 130px; line-height: 1; color: rgba(233, 196, 106, .35); }
.qt p { position: relative; margin: 0 0 14px; font-family: var(--disp); font-style: italic; font-size: clamp(23px, 4.4vw, 30px); line-height: 1.25; }
.qt footer { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.play .qt-mark { animation: qz-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.play .qt p { animation: qz-rise .8s ease .25s both; }
.play .qt footer { animation: b-fade .6s ease .9s both; }

/* the cycle picture (server/visuals.js) */
.y-orbit { transform-origin: 90px 112px; }
.y-mark, .y-light { transform-box: fill-box; transform-origin: center; }
.play .y-orbit { animation: y-spin 1.2s linear .3s 3 both; }
.play .y-mark { animation: y-blink 1.2s ease calc(.3s + var(--i) * .15s) 3; }
.play .y-line { stroke-dasharray: 1; animation: draw 1.2s ease 4s both; }
.play .y-go { animation: y-go 1.2s ease-in-out 4s both; }
.play .y-light { animation: b-fade .6s ease 4.8s both, l-breathe 2.6s ease-in-out 5.4s infinite; }
@keyframes y-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes y-blink { 0%, 100% { fill: rgba(246, 239, 226, .45); } 20% { fill: #8fd3ff; } }
@keyframes y-go { from { transform: translateX(-110px); } }

@media (max-width: 420px) {
  .cd { padding: 12px; gap: 8px; }
  .cd.cols-3 .cd-card { padding: 12px 10px; }
  .cd-mark { width: 22px; height: 22px; top: 8px; right: 8px; }
}
