/* Reinnder · extras: concept labels, the numbers band, the finder, the headline ticker, the Labs explainer pages,
   a reading-progress bar, card spotlights and page transitions. Built on the tokens in styles.css. */

/* Page transitions between pages of this site (browsers that support them; calm for reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
  ::view-transition-new(root) { animation: .38s var(--ease) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; transform-origin: 0 50%; transform: scaleX(0); background: var(--sunset); pointer-events: none; }

/* "Concept" and "Illustrative scenario" labels: product ideas and sample scenarios are shown, and shown as what they are. */
.concept-tag { display: inline-flex; align-items: center; font-family: var(--f-label); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 5px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255, 255, 255, .72); vertical-align: middle; white-space: nowrap; }
.concept-note { color: var(--ink-3); font-size: 14.5px; margin: -6px 0 28px; max-width: 70ch; }
.story__card .concept-tag { margin-bottom: 12px; }
.products .h2 .concept-tag { margin-left: 12px; font-size: 10px; }

/* Pointer spotlight on cards */
.spotlit { position: relative; }
.spotlit::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 0, .12), transparent 62%); z-index: 1; }
.spotlit:hover::before { opacity: 1; }

/* Live headline ticker */
.ticker { display: flex; align-items: stretch; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ticker__tag { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 var(--gutter); font-family: var(--f-label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: var(--surface); position: relative; z-index: 1; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list li { white-space: nowrap; }
.ticker__list a { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.ticker__list a::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); margin-left: 18px; }
.ticker__list a:hover { text-decoration: underline; }
.ticker__src { font-family: var(--f-label); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@keyframes ticker { to { transform: translateX(-50%); } }
.motion-paused .ticker__track, .motion-off .ticker__track { animation: none; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } .ticker__viewport { overflow-x: auto; } }

/* Numbers band */
.stats { padding: clamp(56px, 7vw, 104px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); }
.stat { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-3); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.stat__n { font-size: clamp(52px, 6.4vw, 104px); font-stretch: 104%; letter-spacing: -.05em; font-weight: 560; line-height: .92; font-variant-numeric: tabular-nums; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.stat__l { font-weight: 600; font-size: 17px; }
.stat__s { color: var(--ink-3); font-size: 14.5px; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "What are you trying to solve?" */
.finder { padding: var(--section) 0; background: var(--surface); border-block: 1px solid var(--line); }
.finder__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 56px); }
.finder__head .lede { margin-top: 18px; }
.finder__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.finder__asks { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ask { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; gap: 16px; text-align: left; padding: 16px 18px; border-radius: var(--r-2); background: #fff; border: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; transition: transform .5s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.ask:hover { transform: translateX(4px); border-color: var(--line-2); }
.ask[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lift); }
.ask__n { font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); }
.ask[aria-pressed="true"] .ask__n { color: var(--sun-3); }
.ask__t { font-weight: 560; font-size: 16.5px; line-height: 1.3; }
.ask__go { justify-self: end; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.ask:hover .ask__go, .ask[aria-pressed="true"] .ask__go { opacity: 1; transform: none; }
.finder__label { font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.finder__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 28px; }
.fcard { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: var(--r-2); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fcard__n { font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.fcard__n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--hue, var(--ink)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue, var(--ink)) 20%, transparent); }
.fcard__t { font-weight: 600; }
.fcard__s { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.finder.is-armed .fcard:not(.is-match) { display: none; }
.finder.is-armed .fcard.is-match { animation: fpop .55s var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes fpop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 900px) { .finder__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .finder.is-armed .fcard.is-match { animation: none; } }

/* Horizon filter on the home Labs cards */
.horizon { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.rises .horizon { position: relative; z-index: 1; }
.tech__title a { color: inherit; text-decoration: none; }
.tech__title a:hover { text-decoration: underline; }
.tech__more { grid-column: 1 / -1; }
.tech__more a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.tech__more a:hover { text-decoration: underline; }
.tech__ours .concept-tag { margin: 0 2px; }

/* Labs explainer pages */
.lab__hero { padding-bottom: clamp(36px, 5vw, 72px); }
.lab__crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.lab__crumb a { color: inherit; }
.lab__h1 { font-size: clamp(36px, 5.2vw, 82px); max-width: 20ch; }
.lab__intro { margin-top: 22px; max-width: 60ch; font-size: clamp(19px, 1.6vw, 24px); }
.lab__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.lab__date { font-size: 14px; color: var(--ink-3); }
.lab__layout { display: grid; grid-template-columns: 240px minmax(0, 72ch); gap: clamp(24px, 6vw, 96px); padding-block: clamp(32px, 5vw, 72px); justify-content: center; }
.lab__toc { position: sticky; top: 100px; align-self: start; }
.lab__toc-title { font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.lab__toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.lab__toc a { display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.35; transition: color .2s var(--ease), border-color .2s var(--ease); }
.lab__toc a:hover { color: var(--ink); }
.lab__toc a.is-active { color: var(--ink); border-left-color: var(--sun); font-weight: 600; }
.lab__sec { margin-bottom: clamp(32px, 4vw, 56px); scroll-margin-top: 100px; }
.lab__sec .h2 { margin-bottom: 14px; }
.lab__sec p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin-bottom: 1em; }
.lab__faq { display: grid; gap: 22px; }
.lab__faq h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.lab__faq dd { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.lab__angle, .lab__angle.glass { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-3); margin-bottom: 8px; background: color-mix(in srgb, var(--hue, var(--sun)) 7%, rgba(255, 255, 255, .78)); border: 1px solid color-mix(in srgb, var(--hue, var(--sun)) 22%, var(--line)); }
.lab__angle .concept-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--hue, var(--sun)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue, var(--sun)) 20%, transparent); }
.lab__angle .h3 { margin: 12px 0 10px; }
.lab__angle p { color: var(--ink-2); }
.lab__angle-ours a { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--ink); text-decoration: none; }
.lab__angle-ours a:hover { text-decoration: underline; }
.lab__note { margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.lab__more { padding: var(--section) 0; border-top: 1px solid var(--line); background: var(--surface); }
.lab__more .related { margin-top: 20px; }
.lab__ends { margin: 40px 0; }
@media (max-width: 900px) { .lab__layout { grid-template-columns: 1fr; } .lab__toc { position: static; } .lab__toc ol { border-left: 0; grid-auto-flow: row; } }

/* Key terms on the guides */
.lab__terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lab__terms > div { padding: 16px 18px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.lab__terms dt { font-weight: 600; margin-bottom: 4px; }
.lab__terms dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

/* Where it is used, and sources */
.lab__uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lab__uses li { padding: 14px 16px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.lab__uses strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.lab__sources-note { font-size: 14.5px; color: var(--ink-3); margin-bottom: 12px; }
.lab__sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lab__sources a { display: block; padding: 12px 16px; border-radius: var(--r-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 560; font-size: 15.5px; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.lab__sources a::after { content: " \2197"; color: var(--ink-3); }
.lab__sources a:hover { background: var(--surface); border-color: var(--line-2); }
