/* GlitchYard homepage, after mammutstudios.com: light and dark rounded panels on the violet, sentence-case
   Satoshi, quiet pills with a dot, staggered work cards, service cards, an FAQ and a dark call to action.
   Motion: the hero lines rise on load, the hero's dot field reacts to the pointer (home.js), blocks fade in from the
   side you travel toward (site.js), the work cards lift on hover, the FAQ opens with a smooth height. */

.panel, .stage { margin: 0 var(--gut) var(--gut); border-radius: var(--r); }
/* the stage: one white panel, the hero and the story inside it, the dot field behind both */
.stage { position: relative; overflow: hidden; margin-top: var(--gut); background: var(--white); color: var(--ink); }
.stage__field { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; will-change: transform; }
.stage > section { position: relative; z-index: 1; }
.story { padding: clamp(40px, 8vw, 120px) var(--pad) clamp(110px, 14vw, 200px); display: grid; place-items: center; gap: clamp(48px, 6vw, 96px); }
.story__p { max-width: 21em; text-align: center; font-size: clamp(30px, 3.9vw, 62px); line-height: 1.4; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 500 13px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s; }
.pill i { font-style: normal; }
.pill--line { box-shadow: inset 0 0 0 1.2px currentColor; }
.pill--line:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.pill--light-line { color: var(--white); }
.pill--light-line:hover { background: var(--white); color: var(--ink); }
.pill--ink { background: var(--ink); color: var(--white); padding: 11px 18px; font-size: 14px; }
.pill--ink::before, .pill--lav::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ink:hover { background: var(--violet); }
.pill--lav { background: var(--lav); color: var(--ink); padding: 12px 20px; font-size: 15px; }
.pill--lav:hover { background: var(--white); transform: translateY(-2px); }

/* hero: the light panel */
.hero { position: relative; min-height: calc(100svh - var(--gut)); display: grid; place-items: center; padding: 120px var(--pad) 110px; text-align: center; }
.hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__h { margin: 22px 0 22px; font-size: clamp(52px, 7.4vw, 118px); max-width: 11em; }
.hero__h .ln { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: bottom; }
.hero__h .ln > span { display: inline-block; }
.hero__p { max-width: 32em; font-size: clamp(16px, 1.3vw, 19px); color: rgba(18,13,43,.75); }
@media (prefers-reduced-motion: no-preference) {
  .hero__h .ln > span { animation: line-up 1s cubic-bezier(.16,.9,.24,1) both; }
  .hero__h .ln:nth-child(2) > span { animation-delay: .1s; }
  .hero .pill--line, .hero__p { animation: fade-up .9s cubic-bezier(.2,.8,.2,1) .3s both; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* a word that shows a GIF on hover: a slanted yellow sticker with ink letters (card follows the pointer, home.js) */
.gif-link { display: inline-block; white-space: nowrap; padding: .02em .22em .06em; margin: 0 .04em; border-radius: .14em; text-decoration: none; line-height: 1.05;
  background: var(--amber); color: var(--ink); rotate: -2.5deg; box-shadow: .06em .07em 0 var(--ink);
  transition: rotate .35s cubic-bezier(.3,1.7,.5,1), translate .35s cubic-bezier(.3,1.7,.5,1), box-shadow .35s cubic-bezier(.3,1.7,.5,1); }
.gif-link:hover { rotate: 1.5deg; translate: 0 -.06em; box-shadow: .1em .12em 0 var(--ink); }
.gif-link:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.gif-card { position: fixed; left: 0; top: 0; z-index: 60; width: 280px; aspect-ratio: 498 / 349; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0;
  background: var(--ink); box-shadow: 0 0 0 4px var(--white), 0 24px 50px rgba(18,13,43,.3); will-change: transform, opacity; }
.gif-card img, .gif-card video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gif-card { width: 200px; } }
