/* Insights. Loaded after site.css and page.css.
   Standing still it is a list of questions with a picture beside each. Live, one sheet is pinned and the camera goes along it. */

.ideas {
  /* the drawing sheet, as in home.css */
  --sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='1' height='100%25' fill='%230d0d0d' fill-opacity='.13'/%3E%3Cg fill='%230d0d0d' fill-opacity='.6'%3E%3Crect y='50%25' width='1' height='11' transform='translate(0 -5)'/%3E%3Crect y='50%25' width='6' height='1'/%3E%3Crect x='100%25' y='50%25' width='5' height='1' transform='translate(-5 0)'/%3E%3C/g%3E%3C/svg%3E");
  position: relative; background: #fff var(--sheet) 0 0 / 25% 22rem; color: var(--ink);
}
.ideas__sheet { display: none; }
.idea { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; padding: clamp(3rem, 5vw, 6rem) var(--gut); }
.idea--open { min-height: 100vh; min-height: 100svh; padding-top: clamp(6rem, 9vw, 9rem); }
.idea__still svg { display: block; width: 100%; height: auto; max-height: 78vh; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
.idea h2 { font-size: min(4.5vw, 10svh); font-weight: 600; line-height: 1; letter-spacing: -.042em; text-wrap: balance; }
.idea p { margin-top: 1.1em; max-width: 23em; font-size: clamp(1.0625rem, 1.42vw, 1.75rem); font-weight: 500; line-height: 1.34; letter-spacing: -.012em; text-wrap: pretty; }
.idea--open .page-h { font-size: min(6.4vw, 14svh); }
.idea .whole { white-space: nowrap; }

/* 8.62 questions, as insights.js counts them, at 135 hundredths of a screen each */
.live .ideas { height: calc(100vh + 8.62 * 135vh); margin-bottom: -1px; background: #fff; }
.live .ideas__pin { position: sticky; top: 0; height: 100vh; min-height: 20rem; overflow: clip; }
.live .ideas__sheet { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.live .idea { position: absolute; z-index: 1; left: var(--gut); top: 0; bottom: var(--bar); display: flex; align-items: center; width: 33.5vw; min-height: 0; padding: 3.4rem 0 0; opacity: 0; transform: translateY(1.5rem); transition: opacity .18s, transform .3s; pointer-events: none; }
.live .idea--open { width: 60vw; }
.live .idea.is-past { transform: translateY(-1.5rem); }
.live .idea.is-on { opacity: 1; transform: none; transition: opacity .5s .05s, transform .9s .05s var(--out); pointer-events: auto; }
.live .is-full .idea.is-on { opacity: 0; transition: opacity .18s; }
.live .idea__still { display: none; }

/* upright screens: the words above, the scene below */
@media (max-aspect-ratio: 5/4) {
  .ideas { background-size: 50% 22rem; }
  .idea { grid-template-columns: minmax(0, 1fr); gap: clamp(2.4rem, 6vw, 4rem); padding-block: clamp(3rem, 8vw, 5rem); }
  .idea--open { min-height: 0; padding-top: clamp(6rem, 14vw, 9rem); }
  .idea h2 { font-size: min(9.6vw, 6svh); }
  .idea p { max-width: 27em; margin-top: .8em; font-size: clamp(1rem, 2.4vw, 1.5rem); }
  .idea--open .page-h { font-size: min(11.3vw, 9svh); }
  .live .idea { right: var(--gut); align-items: flex-start; width: auto; padding-top: max(5.2rem, 11svh); }
  .live .idea--open { padding-top: max(6.6rem, 13svh); }
  .live .idea:not(.idea--open) :is(h2, p) { background: #fff; box-shadow: 0 0 0 .5rem #fff; }       /* the drawing passes behind the words */
  .live .ideas + .go { margin-top: -37vh; }           /* it comes up over the yellow (DIVE in insights.js) */
}
