/* Beat 13 #science, "The science" (spec r3 7.4): the studentnetwork show.
   The block sits on a spotlit stand; the orbiting type ring turns with
   scroll around it; each finding is a big numeral with a glass card, then
   the KPI cards fly in (step 6) and the responsible design cards (step 7). */
.sh-beat--science { --b-step-h: 44svh; }
.sh-beat--science .b-frame { grid-template-rows: auto 1fr auto; justify-items: center; }
.sh-beat--science .b-head { justify-self: start; }
.sh-beat--science .b-head h2 { font-size: clamp(30px, 3vw, 48px); }
.sh-beat--science .b-steps { width: 100%; justify-items: center; align-items: center; }
.sh-beat--science .b-foot { justify-self: start; }

/* The ring: centred on the stage's stand when projected, else on the frame. */
.b-ring { position: absolute; left: var(--b-rx, 50%); top: var(--b-ry, 60%); z-index: -1; width: min(66vmin, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.b-ring svg { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(var(--b-rot, 0deg)); will-change: transform; }
.b-ring__track { fill: none; stroke: rgb(212 175 55 / 30%); stroke-width: .8; }
.b-ring__inner { fill: none; stroke: rgb(255 255 255 / 9%); stroke-width: .8; stroke-dasharray: 2 6; }
.b-ring__type { fill: rgb(243 242 238 / 58%); font: 600 11px var(--sh-font-mono); letter-spacing: .42em; text-transform: uppercase; }
.b-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgb(229 198 92 / 9%), transparent 62%); }
html:not(.b-live) .b-ring { position: relative; left: auto; top: auto; margin: 10px auto -40%; transform: none; width: min(60vw, 360px); opacity: .6; }
html.b-live .sh-beat--science[data-b-step="6"] .b-ring, html.b-live .sh-beat--science[data-b-step="7"] .b-ring { opacity: .35; transition: opacity .8s ease; }

/* Findings. */
.b-sci { display: flex; flex-direction: column; align-items: center; text-align: center; }
.b-sci__num { font: 400 var(--b-xl)/.95 var(--sh-font-num); letter-spacing: -.03em; color: var(--sh-fg); white-space: nowrap; text-shadow: 0 0 60px rgb(229 198 92 / 22%); }
.b-sci:first-child .b-sci__num { font-size: calc(var(--b-xl) * 1.5); color: var(--sh-gold-hi); }
.b-sci__card { max-width: 620px; margin-top: 26px; padding: 22px 26px; border: 1px solid var(--b-panel-line); border-radius: 18px; background: rgb(9 11 15 / 66%); text-align: left; }
html[data-tier="full"] .b-sci__card { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgb(9 11 15 / 50%); }
.b-sci__card h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.025em; }
.b-sci__finding { margin-top: 10px; color: var(--sh-fg); font-size: 16px; line-height: 1.55; }
.b-sci__ours { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sh-line); color: var(--sh-fg-2); font-size: 15px; line-height: 1.55; }
.b-sci__label { display: block; margin-bottom: 6px; color: var(--sh-teal); font: 600 10px/1 var(--sh-font-mono); letter-spacing: .2em; text-transform: uppercase; }
html.b-live .b-sci .b-sci__num { transition: transform 1s var(--b-ease), letter-spacing 1.2s var(--b-ease); }
html.b-live .b-sci:not(.is-active) .b-sci__num { transform: scale(.92); letter-spacing: .02em; }

/* KPI and responsible design cards. */
.b-deckcards { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.b-deckcards h3 { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.b-deckcards .b-sub { margin-top: 8px; }
.b-deckcards .b-cards { width: min(70vw, 1180px); text-align: left; }
.b-deckcards .b-cards--three { width: min(70vw, 980px); }
.b-deckcards .b-line { max-width: 44em; margin-top: 18px; font-size: 15.5px; color: var(--sh-fg-2); }
html.b-live .b-deckcards .b-card { transition: transform .5s var(--b-ease), border-color .3s ease; }
html.b-live .b-deckcards .b-card:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / 24%); }

@media (max-width: 1100px) {
  .b-deckcards .b-cards, .b-deckcards .b-cards--three { width: 100%; }
  .b-deckcards .b-cards { --b-cols: 3; }
}
@media (max-width: 767px) {
  .sh-beat--science { --b-step-h: 60svh; }
  .b-ring { width: min(92vw, 420px); top: var(--b-ry, 48%); }
  .b-sci__num { font-size: clamp(52px, 15vw, 80px); white-space: normal; text-wrap: balance; }
  .b-sci:first-child .b-sci__num { font-size: 96px; }
  .b-sci__card { max-width: 100%; }
  .b-sci__card { margin-top: 16px; padding: 16px 16px; }
  .b-sci__finding { font-size: 14.5px; }
  .b-sci__ours { font-size: 13.5px; margin-top: 10px; padding-top: 10px; }
  .b-deckcards { align-items: stretch; text-align: left; }
  .b-deckcards .b-cards, .b-deckcards .b-cards--three { width: auto; }
  .b-deckcards .b-line { font-size: 14px; }
}
@media (max-height: 559px) and (orientation: landscape) {
  .b-sci { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; text-align: left; }
  .b-sci__card { margin-top: 0; }
  .b-sci__num, .b-sci:first-child .b-sci__num { font-size: 72px; }
  .b-deckcards .b-cards { --b-cols: 3; }
}
