/* Flourishes that only exist with JS + motion: the opening ink drop, the ink cursor, the services peek, the marquee. */

/* Opening (js/intro-sequence.js). Before the script runs, a plain night cover; it hides itself after 4 s if the
   script never arrives, so the page can never stay covered. */
.intro-pending body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; background: var(--night);
  animation: cover-failsafe 0s 4s forwards;
}
@keyframes cover-failsafe { to { visibility: hidden; } }
.intro {
  --hole: 0px; position: fixed; inset: 0; z-index: 91; display: grid; place-items: center; background: var(--night); color: var(--bg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.intro-mark { display: flex; align-items: center; gap: 0.18em; font: 800 clamp(2.6rem, 9vw, 7rem)/1 var(--font-display); letter-spacing: -0.04em; }
.intro-logo { position: relative; width: 1.25em; aspect-ratio: 1; }
.intro-logo img { width: 100%; height: 100%; opacity: 0; }
.intro-drop { position: absolute; top: 20.3%; width: 59.4%; aspect-ratio: 1; border-radius: 50%; }  /* r=19 of 64, like favicon.svg */
.intro-drop--a { left: 6.3%; background: var(--client); }
.intro-drop--b { left: 34.4%; background: var(--studio); }
.intro-word { display: inline-flex; overflow: clip; padding-block: 0.1em; }
.intro-word span { display: inline-block; }

/* Ink cursor: mouse only, the system cursor stays. Grows over links and buttons with a short verb. */
.ink-cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.ink-cursor.is-on { opacity: 1; }
.ink-cursor-dot {
  position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--client); box-shadow: 0 0 0 1.5px var(--ink);
  transform: scale(0.16); transition: transform 0.35s var(--ease-out);
  font: 700 0.95rem/1 var(--font-body); color: var(--ink);
}
.ink-cursor-dot span { opacity: 0; transition: opacity 0.2s; }
.ink-cursor.is-big .ink-cursor-dot { transform: scale(1); }
.ink-cursor.is-big .ink-cursor-dot span { opacity: 1; }

/* Services peek: a real screen crop (or an ink drop where we have no real screen) following the cursor. */
.service-peek {
  position: fixed; left: 0; top: 0; z-index: 70; width: clamp(200px, 20vw, 300px); pointer-events: none;
  opacity: 0; scale: 0.7; transition: opacity 0.25s, scale 0.35s var(--ease-out);
}
.service-peek.is-on { opacity: 1; scale: 1; }
.service-peek img { width: 100%; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(16, 27, 58, 0.6); }
.service-peek .peek-ink { --peek: var(--client); width: 64%; aspect-ratio: 1; border-radius: 50%; margin-inline: auto; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55) 0 6%, var(--peek) 26%); }
.service-peek figcaption { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); text-align: center; }

/* Marquee */
.marquee { overflow: clip; padding-block: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(2rem, 5vw, 4rem); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 0.35em; padding-right: 0.35em; font: 800 clamp(3.2rem, 11vw, 10rem)/1.05 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }
.ink-dot { display: inline-block; width: 0.42em; aspect-ratio: 1; border-radius: 50%; flex: none; }
.ink-dot--client { background: var(--client); } .ink-dot--studio { background: var(--studio); } .ink-dot--team { background: var(--team); } .ink-dot--night { background: var(--ink); }
