/* ===== Shared motion — scroll reveal, ticker, page hero, count-up =====
   Used on /about, /young-people and /news, and reusable on the homepage.
   All movement is progressive enhancement (scoped to html.js) and is
   switched off under prefers-reduced-motion. */

/* Scroll reveal (only when JS is available, so content never hides without it) */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.34, 1.3, .64, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* Page hero: magenta band, ink kicker, big Anton headline */
.phero { padding: 0; position: relative; background: var(--magenta); color: #fff; border-bottom: 3px solid var(--ink); overflow: hidden; }
.phero .wrap { padding: 64px 22px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.phero--solo .wrap { grid-template-columns: 1fr; }
.phero + section { border-top: 0; }
@media (max-width: 860px) { .phero .wrap { grid-template-columns: 1fr; } }
.phero-kicker { font-family: var(--font-label); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.phero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: .005em; margin: 0; }
.phero h1 em { font-style: normal; position: relative; display: inline-block; }
.phero-intro { font-size: 20px; line-height: 1.45; max-width: 560px; margin: 22px 0 0; }

/* Hand-drawn underline that draws itself in */
.uline { position: absolute; left: -2%; width: 104%; bottom: -.3em; height: .2em; overflow: visible; }
.js .uline path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: fitd-draw 1.1s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes fitd-draw { to { stroke-dashoffset: 0; } }

/* Ticker strip */
.marq { overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--ink); }
.marq-track { display: inline-flex; animation: fitd-marq 40s linear infinite; }
.marq-unit { display: inline-block; padding: 14px 0; font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; }
.marq-unit span { color: var(--magenta); padding: 0 .3em; }
@keyframes fitd-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .rv { opacity: 1 !important; transform: none !important; }
  .marq-track { animation: none !important; }
  .js .uline path { animation: none !important; stroke-dashoffset: 0 !important; }
}
