/* Chapter 01: Gallery. */

/* -------------------------------------------------------------------------
   01 Gallery
   ------------------------------------------------------------------------- */
.ch--gallery { --rond: 100; color: #111318; padding-bottom: 12vh; }
.ch--gallery .ch__title { font-weight: 470; letter-spacing: -.035em; max-width: 13ch; }
.g-play { position: relative; min-height: 112vh; min-height: 112svh; overflow: hidden; }
.g-play .ch__head {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 9vh) var(--pad) 0;
  pointer-events: none;
}
.g-play .ch__head a,
.g-play .ch__head .btn { pointer-events: auto; }
.g-play__bodies { position: absolute; inset: 0; z-index: 1; }
.g-body {
  position: absolute; left: 0; top: 0;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.g-body svg { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(30, 50, 90, .14)); }
.g-body:active { cursor: grabbing; }
.g-play__hint {
  position: absolute; z-index: 3; right: var(--pad); top: calc(var(--nav-h) + 9vh);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(17, 19, 24, .55);
  pointer-events: none;
  display: none; /* hiding for now */
}
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-blue); animation: pulse-b 2s infinite; }
@keyframes pulse-b { 0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, .5); } 70% { box-shadow: 0 0 0 10px rgba(66, 133, 244, 0); } 100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); } }

.g-video {
  position: relative;
  margin-top: 9vh;
  background: #fdfdfd; /* matches the video's edge color */
  border-radius: clamp(20px, 2.6vw, 40px);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17, 19, 24, .04), 0 40px 80px -40px rgba(40, 60, 110, .25);
}
.g-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.g-video__btn {
  position: absolute; right: 18px; bottom: 18px;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(17, 19, 24, .08); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  transition: background-color .3s;
}
.g-video__btn:hover { background: rgba(17, 19, 24, .16); }
.ico-pause { width: 12px; height: 14px; border-left: 4px solid #111318; border-right: 4px solid #111318; }
.g-video__btn.is-paused .ico-pause { width: 0; height: 0; border: 0; border-left: 13px solid #111318; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

.g-desc {
  margin: 18vh auto 16vh;
  max-width: 1100px;
  font-size: clamp(28px, 3.4vw, 54px); line-height: 1.12; letter-spacing: -.025em; font-weight: 420;
  text-align: center;
}
.words .mw { display: inline-block; opacity: .18; transition: opacity .5s; }
.words .mw.on { opacity: 1; }

.g-feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.g-feat__intro { padding-top: 10vh; }
.g-feat__intro p { font-size: 18px; line-height: 1.5; color: rgba(17, 19, 24, .6); max-width: 440px; margin: 14px 0 0; }
.g-step {
  min-height: 72vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .25;
  transition: opacity .6s;
}
.g-step.is-active { opacity: 1; }
.g-step__n {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(17, 19, 24, .2);
  font-size: 13px; font-stretch: 55%; margin-bottom: 22px;
  transition: background-color .5s, color .5s, border-color .5s;
}
.g-step.is-active .g-step__n { background: #111318; color: #fff; border-color: #111318; }
.g-step h3 { margin: 0 0 16px; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.08; letter-spacing: -.025em; font-weight: 460; max-width: 18ch; }
.g-step p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(17, 19, 24, .64); max-width: 480px; }
.g-feat__visual { position: sticky; top: calc(50vh - min(40vw, 560px) / 2 + 20px); }
.g-tile {
  position: relative;
  width: 100%; max-width: 560px; aspect-ratio: 1; margin-left: auto;
  border-radius: 12%;
  background: linear-gradient(180deg, #f7fcff 0%, #ddf1ff 45%, #c3e8ff 100%); /* sampled from feature PNG edges */
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(40, 110, 200, .45);
}
.g-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-io); }
.g-tile[data-active="0"] [data-layer="0"],
.g-tile[data-active="1"] [data-layer="1"],
.g-tile[data-active="2"] [data-layer="2"] { opacity: 1; }
.g-layer--img img { width: 100%; height: 100%; object-fit: cover; }
.g-tile__dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.g-tile__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(17, 60, 120, .2); transition: width .5s var(--ease-out), background-color .5s; }
.g-tile[data-active="0"] .g-tile__dots i:nth-child(1),
.g-tile[data-active="1"] .g-tile__dots i:nth-child(2),
.g-tile[data-active="2"] .g-tile__dots i:nth-child(3) { width: 20px; background: rgba(17, 60, 120, .6); }

/* use-case cards (HTML recreation of feature_1.png) */
.uc {
  position: absolute;
  width: 46%;
  left: calc(-7% + var(--i) * 17%);
  top: calc(16% + var(--i) * 11.5%);
  padding: 5.5% 5%;
  border-radius: 9%;
  background: #eef2f7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 30px -18px rgba(30, 60, 110, .35);
  display: flex; flex-direction: column;
  opacity: 0; transform: translate(-30px, 20px);
  transition: transform .9s var(--ease-out), opacity .6s;
  transition-delay: calc(var(--i) * 90ms);
  container-type: inline-size;
}
.uc:nth-child(4) { background: #f3f6fa; }
.g-tile[data-active="0"] .uc { opacity: 1; transform: none; }
.g-tile[data-active="0"]:hover .uc { transform: translate(calc((var(--i) - 1.5) * 8px), calc((var(--i) - 1.5) * -6px)); }
.uc__ico { position: relative; width: 22cqi; height: 22cqi; margin-bottom: 12cqi; }
.uc__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.uc__glyph { position: absolute; inset: 24%; width: 52%; height: 52%; color: #fff; }
.uc:nth-child(4) .uc__glyph { color: #1f1f1f; }
.uc small { font-size: 7.2cqi; color: #5f6368; font-weight: 500; }
.uc b { font-size: 11cqi; font-weight: 500; margin: 3cqi 0 2cqi; letter-spacing: -.01em; white-space: nowrap; }
.uc em { font-style: normal; font-size: 7.6cqi; color: #444746; line-height: 1.35; }

/* Gemma blueprint (SVG recreation of feature_2.png) */
/* Gemma art (original feature_2.png): focus-pull in, slow breathing, and a soft light sweep. */
.g-layer--gemma { overflow: hidden; }
.g-layer--gemma img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); filter: blur(10px) saturate(.8);
  transition: transform 1.6s var(--ease-out), filter 1.2s var(--ease-out);
}
.g-tile[data-active="1"] .g-layer--gemma img {
  transform: scale(1); filter: none;
  animation: gemma-breathe 7s ease-in-out 1.6s infinite;
}
@keyframes gemma-breathe { 50% { transform: scale(1.025); } }
.g-sheen {
  position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.g-tile[data-active="1"] .g-sheen { animation: sheen 5.5s var(--ease-io) .9s infinite; }
@keyframes sheen { 0% { transform: translateX(-70%); } 45%, 100% { transform: translateX(70%); } }

/* community marquee */
.g-comm { margin-top: 18vh; }
.g-comm__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.g-comm__head h2 { margin: 0; font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -.035em; font-weight: 460; }
.g-comm__head p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(17, 19, 24, .62); max-width: 480px; justify-self: end; }
.marquee { overflow: hidden; padding: 30px 0 40px; cursor: grab; }
.marquee:active { cursor: grabbing; }
.marquee__track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.phone-card {
  flex: none;
  width: clamp(200px, 17vw, 260px);
  padding: 18px 12px 14px;
  border-radius: 30px;
  background: #fff; /* phone PNGs are transparent with a dark caption → white card */
  box-shadow: 0 1px 0 rgba(17, 19, 24, .04), 0 24px 40px -28px rgba(40, 60, 110, .35);
  transition: transform .6s var(--ease-out);
}
.phone-card img { width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.phone-card:hover { transform: translateY(-10px) rotate(-1deg); }
.g-comm__signup { text-align: center; margin: 40px auto 0; padding: 0 var(--pad); font-size: 16px; line-height: 1.6; color: rgba(17, 19, 24, .6); }
