/* Gemma section. */

/* -------------------------------------------------------------------------
   Gemma
   ------------------------------------------------------------------------- */
.gemma { position: relative; color: #fff; }
.gemma__pin { position: relative; height: 300vh; }
.gemma__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gemma__sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Scrim keeps the copy readable where the (larger) point cloud drifts behind it. */
.gemma__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 7, 10, .92) 0%, rgba(6, 7, 10, .7) 26%, rgba(6, 7, 10, 0) 44%);
}
.gemma__copy {
  position: absolute; left: var(--pad); bottom: 10vh; z-index: 2;
  max-width: 480px;
  pointer-events: none;
}
.gemma__logo {
  display: inline-flex; align-items: center;
  margin-bottom: 16px;
}
.gemma__logo img { height: 26px; width: auto; }
.gemma__note { margin: 18px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.legend .lg-soon { opacity: .6; }
/* Both lines share one grid cell so they cross-fade in place, and the title is as
   tall as the longer of the two (one line of height when both fit on one line). */
.gemma__title { position: relative; display: grid; margin: 0 0 22px; font-size: clamp(36px, 4.4vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 440; }
.gt { grid-area: 1 / 1; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), font-weight .8s var(--ease-out); }
.gt--b { opacity: 0; transform: translateY(20px); font-weight: 300; }
.gemma.is-merged .gt--a { opacity: 0; transform: translateY(-20px); font-weight: 300; }
.gemma.is-merged .gt--b { opacity: 1; transform: none; font-weight: 460; }
.gemma__desc { margin: 0 0 26px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.gemma__desc strong { color: #fff; font-weight: 600; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .7); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 10px; height: 10px; }
.lg--text { background: #8ab4f8; border-radius: 2px; }
.lg--image { border: 2px solid #81c995; border-radius: 50%; }
.lg--video { width: 0; height: 0; border-left: 10px solid #fdd663; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.lg--audio { width: 12px; height: 10px; background: linear-gradient(90deg, #f28b82 0 2px, transparent 2px 5px, #f28b82 5px 7px, transparent 7px 10px, #f28b82 10px 12px); }

.gemma__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 6vh; padding-bottom: 14vh; }
.gm-card { padding: clamp(26px, 3vw, 44px); border-radius: 32px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08); }
.gm-card h3 { margin: 18px 0 14px; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.025em; font-weight: 460; }
.gm-card p { margin: 0 0 26px; color: rgba(255, 255, 255, .66); font-size: 16.5px; line-height: 1.6; }
.gm-card p a { color: #8ab4f8; text-underline-offset: 3px; }
.gm-used { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.gm-used a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-weight: 500; transition: background-color .3s; }
.gm-used a:hover { background: rgba(255, 255, 255, .16); }
.gm-used svg,
.gm-used img { width: 24px; height: 24px; }
