/* ==========================================================================
   Pincbone — landing-base.css
   Rules both halves of the landing page share. Section CSS lives in
   landing-top.css (nav, hero, marquee, statement) and landing-bottom.css
   (how it works, audiences, difference, FAQ, final CTA, footer).
   ========================================================================== */

/* hero type is sized so the longest line ("We run the rest.") stays on one line */
:root { --fs-hero: clamp(3rem, 15.5vw, 5.5rem); }
@media (min-width: 900px) {
  :root { --fs-hero: clamp(4.5rem, 8.4vw, 9.5rem); }
}

/* --- motion contract (see js/motion-core.js) ------------------------------
   Content is visible by default. It is only pre-hidden while JS motion is
   expected: html.js is set inline in <head>; html.motion-off is added if GSAP
   is missing, the visitor prefers reduced motion, or the 10 s failsafe fires.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.motion-off) [data-reveal],
  html.js:not(.motion-off) [data-split] { opacity: 0; }
}

/* the logo's idle ear twitch stops when the pause control is unavailable */
html.motion-off .pb-mark--alive .pb-mark__ear--r { animation: none; }

[data-split] { text-wrap: wrap; font-kerning: none; }
/* masked lines: tight display line-height would clip ascenders/descenders */
.pb-line-mask, .pb-word-mask { padding-block: 0.14em; margin-block: -0.14em; }

/* GSAP owns transform on magnetic elements; keep CSS transitions off it */
[data-magnetic] { transition-property: background-color, color, box-shadow; }

/* pause control for idle loops (WCAG 2.2.2) */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }
html.motion-off [data-motion-toggle] { display: none; }

/* --- shared small components ---------------------------------------------- */

/* eyebrow: mono label with a leading accent dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--muted);
}
.eyebrow__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* section header: eyebrow + big heading (+ optional lead) */
.sec-head { display: grid; gap: clamp(1rem, 0.7rem + 1vw, 1.75rem); max-width: 62rem; }
.sec-head .lead { max-width: 46ch; }

/* chip: small pill tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.chip svg { width: 0.875rem; height: 0.875rem; flex: none; }

/* inline bone glyph (inline SVG with fill=currentColor) */
.bone-icon { display: inline-block; width: 1.6em; height: auto; flex: none; vertical-align: middle; }

/* anchor targets clear the floating nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* idle loops rest while their block is off screen (class set by js/motion-core.js) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
