/* "Why on-device" section. */

/* -------------------------------------------------------------------------
   Why on-device
   ------------------------------------------------------------------------- */
.why { padding: 18vh 0 14vh; position: relative; }
.why .kicker { margin-bottom: 34px; }
.manifesto {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 400;
}
.manifesto .mw {
  display: inline-block;
  opacity: .16;
  transition: opacity .5s ease, font-weight .8s var(--ease-out);
  font-weight: 350;
  /* Extra paint box so background-clip:text doesn't clip descenders (g, y, p). */
  padding: .12em 0 .18em;
  margin: -.12em 0 -.18em;
}
.manifesto .mw.on { opacity: 1; font-weight: 440; }
.manifesto .mw.key.on { color: #fff; background: linear-gradient(90deg, #8ab4f8, #81c995); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 16vh;
}
.pillar {
  position: relative;
  padding: 18px 18px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  min-height: 420px;
  display: flex; flex-direction: column;
}
.pillar__art {
  height: 200px; border-radius: 18px; margin-bottom: 26px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .06), rgba(255, 255, 255, .0) 70%), #0f1114;
  border: 1px solid rgba(255, 255, 255, .06);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.pillar__art > svg { width: 100%; height: 100%; }
.pillar__num { font-size: 12px; color: var(--fg-dim); font-stretch: 55%; letter-spacing: .08em; margin: 0 4px; }
.pillar h3 { margin: 10px 4px 10px; font-size: 24px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.pillar p { margin: 0 4px; color: var(--fg-dim); font-size: 15px; line-height: 1.55; }

/* Private art */
.art-private .art-grid circle { fill: rgba(255, 255, 255, .25); }
.art-private .dev-wall { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .5); stroke-width: 1.4; }
.art-private .ping { stroke: #8ab4f8; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.art-private .ping--2 { stroke-width: 1.4; }

/* Offline art */
.art-offline { width: 82%; display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.ao-bar { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.ao-plane { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; animation: plane-bg 7s infinite; }
.ao-plane svg { width: 13px; height: 13px; transform: rotate(45deg); }
@keyframes plane-bg { 0%, 12% { background: rgba(255, 255, 255, .1); color: #fff; } 18%, 92% { background: #fbbc04; color: #1a1300; } 100% { background: rgba(255, 255, 255, .1); color: #fff; } }
.ao-label { flex: 1; color: rgba(255, 255, 255, .8); }
.ao-toggle { width: 30px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .2); position: relative; animation: tgl-bg 7s infinite; }
.ao-toggle i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: tgl 7s infinite; }
@keyframes tgl { 0%, 12% { transform: none; } 18%, 92% { transform: translateX(12px); } 100% { transform: none; } }
@keyframes tgl-bg { 0%, 12% { background: rgba(255, 255, 255, .2); } 18%, 92% { background: #3ddc84; } 100% { background: rgba(255, 255, 255, .2); } }
.ao-wifi { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .45); padding: 0 4px; }
.ao-wifi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ao-wifi svg circle { fill: currentColor; stroke: none; }
.ao-wifi .w3,
.ao-wifi .w2 { animation: bars 7s infinite; }
@keyframes bars { 0%, 14% { opacity: 1; } 20%, 92% { opacity: .15; } 100% { opacity: 1; } }
.ao-nosig { animation: nosig 7s infinite; }
@keyframes nosig { 0%, 16% { opacity: 0; } 22%, 90% { opacity: 1; } 100% { opacity: 0; } }
.ao-bubble { max-width: 86%; padding: 8px 12px; border-radius: 14px; line-height: 1.35; }
.ao-bubble--me { align-self: flex-end; background: #2b5fd9; color: #fff; border-bottom-right-radius: 4px; animation: b-in 7s infinite; }
.ao-bubble--ai { align-self: flex-start; background: rgba(255, 255, 255, .08); color: #fff; border-bottom-left-radius: 4px; animation: b-in2 7s infinite; }
.ao-typed { display: inline-block; clip-path: inset(0 100% 0 0); animation: type 7s steps(30) infinite; }
@keyframes b-in { 0%, 26% { opacity: 0; transform: translateY(6px); } 32%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes b-in2 { 0%, 38% { opacity: 0; transform: translateY(6px); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes type { 0%, 44% { clip-path: inset(0 100% 0 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }

/* Instant art */
.art-instant .route { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.4; stroke-dasharray: 3 5; }
.art-instant .cloud path { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; }
.art-instant .dev { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; }
.art-instant .loop { fill: none; stroke: rgba(129, 201, 149, .35); stroke-width: 1.2; }
.art-instant .pk-slow { fill: rgba(255, 255, 255, .55); }
.art-instant .pk-fast { fill: #81c995; filter: drop-shadow(0 0 4px #81c995); }
.art-instant .lbl { font: 500 10px "Google Sans Flex", sans-serif; fill: rgba(255, 255, 255, .45); letter-spacing: .06em; text-transform: uppercase; }
.art-instant .lbl--hi { fill: #81c995; }

/* Personal art */
.art-personal { position: relative; width: 100%; height: 100%; }
.ap-core {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(167, 139, 250, .35), rgba(167, 139, 250, 0) 70%);
}
.ap-core img { width: 44px; height: 44px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08) rotate(6deg); } }
.ap-chip {
  position: absolute; left: 50%; top: 50%;
  padding: 5px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  color: #ece7ff; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .3);
  animation: orbit 12s linear infinite; animation-delay: var(--d);
}
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateX(78px) rotate(calc(-1 * var(--a))); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--a) + 360deg)) translateX(78px) rotate(calc(-1 * var(--a) - 360deg)); }
}
