[data-pencil-name="Left"] [data-pencil-name="Wordmark"] { transition: translate 0.35s cubic-bezier(.3, 1.6, .5, 1); }
[data-pencil-name="Left"]:hover [data-pencil-name="Wordmark"] { translate: 0 -2px; }
/* Logomark (textless T-mascot): springs up and tilts on hover, squishes on press. */
[data-pencil-name="Logomark"] { cursor: pointer; transform-origin: 50% 70%; transition: transform 0.5s cubic-bezier(.3, 1.9, .5, 1); will-change: transform; }
[data-pencil-name="Logomark"]:hover { transform: scale(1.16) rotate(-8deg); }
[data-pencil-name="Logomark"]:active { transform: scale(0.9, 0.84) rotate(4deg); transition-duration: 0.12s; }
[data-pencil-name="Logomark"]:focus-visible { outline: 2px solid #C9F24D; outline-offset: 4px; border-radius: 12px; }
/* The sparkle twinkles on hover. */
[data-pencil-name="Logomark"] [data-pencil-name="Sparkle"] { transform-box: fill-box; transform-origin: center; transition: transform 0.5s cubic-bezier(.3, 1.9, .5, 1); }
[data-pencil-name="Logomark"]:hover [data-pencil-name="Sparkle"] { transform: scale(1.35) rotate(20deg); }
/* The status LED breathes: a soft green ring grows out of the dot and fades. */
[data-pencil-name="Status"] [data-pencil-name="LED"] { position: relative; overflow: visible !important; }
[data-pencil-name="Status"] [data-pencil-name="LED"]::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; opacity: 0.45;
  animation: led-breathe 2.2s ease-out infinite;
}
@keyframes led-breathe { 0% { transform: scale(0.5); opacity: 0.5; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  [data-pencil-name="Logomark"], [data-pencil-name="Logomark"] [data-pencil-name="Sparkle"] { transition: none; }
  [data-pencil-name="Logomark"]:hover { transform: none; }
  [data-pencil-name="Status"] [data-pencil-name="LED"]::after { animation: none; opacity: 0; }
  [data-pencil-name="Left"] [data-pencil-name="Wordmark"] { transition: none; }
}

/* Live location pill (local-time.js): one line, "Sawangan, Depok (ID)" | ticking Jakarta clock + GMT+7 (WIB). */
.loc-pill {
  --loc-bg: rgba(255, 255, 255, 0.08); --loc-line: rgba(255, 255, 255, 0.3); --loc-fg: rgba(255, 255, 255, 0.85); --loc-muted: rgba(255, 255, 255, 0.65);
  flex: none; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px;
  border-radius: 999px; border: 1px solid var(--loc-line); background: var(--loc-bg); color: var(--loc-fg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 10px/1.3 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.3px; white-space: nowrap; user-select: none;
  transform: rotate(-1deg); transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1);
}
html[data-theme="light"] .loc-pill { --loc-bg: rgba(11, 16, 48, 0.06); --loc-line: rgba(11, 16, 48, 0.15); --loc-fg: rgba(13, 13, 15, 0.8); --loc-muted: rgba(13, 13, 15, 0.6); }
.loc-pill:hover { transform: rotate(-1deg) scale(1.06); }
.loc-pill .loc-pin { flex: none; }
.loc-text { display: flex; align-items: center; gap: 9px; }
.loc-live { position: relative; display: flex; align-items: center; gap: 6px; padding-left: 10px; }
.loc-live::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 1px; background: var(--loc-line); }
.loc-time b { font-weight: 600; }
.loc-zone { color: var(--loc-muted); font-weight: 500; }
.loc-led { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(34, 197, 94, 0.2); }
.loc-led::before { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 6px #22C55E; }
.loc-led::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; opacity: 0.45; animation: led-breathe 2.2s ease-out infinite; }
.loc-colon { animation: loc-blink 1s steps(1) infinite; }
@keyframes loc-blink { 50% { opacity: 0.25; } }
/* Mobile: Home puts it at the top of the hero, case studies right under the sticky header. */
.loc-row { display: flex; justify-content: center; margin-bottom: 14px; }
.cm-meta { display: none; padding: 14px var(--pad, 20px) 0; }
html.cm-mobile .cm-meta { display: block; }
@media (max-width: 360px) {
  .loc-pill { font-size: 9px; gap: 5px; padding: 5px 10px 5px 8px; }
  .loc-text { gap: 7px; } .loc-live { gap: 5px; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-pill { transition: none; } .loc-pill:hover { transform: rotate(-1deg); }
  .loc-led::after, .loc-colon { animation: none; }
}
