/* =====================================================================
   YCC widgets: count-up stats, ticker, fanning avatars, tilt cards, sliding nav
   highlight, expanding-arrow buttons, New badges, timeline, bouncy FAQ.
   ===================================================================== */

/* ---------- Ticker (marquee) ---------- */
.marquee { margin: 0 calc(50% - 50vw); width: 100vw; padding: 18px 0; display: grid; gap: 10px; background: #050506;
  border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: mq 60s linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; animation-duration: 75s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { font: 700 1.05rem Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #e9eaee; white-space: nowrap; text-decoration: none; }
.marquee-row.rev .mq-item { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.mq-item.news { color: #ff6b71 !important; -webkit-text-stroke: 0 !important; font-family: Inter, sans-serif; font-weight: 700; font-size: .9rem; }
.mq-item.news:hover { text-decoration: underline; }
.mq-dot { color: #d71920; font-size: .6rem; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Count-up stats (digits roll into place) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 10px; }
.stat-tile { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 22px 22px 20px; border-radius: 22px; text-decoration: none; color: var(--text) !important;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift-1); transition: transform .5s var(--ease, ease), box-shadow .5s, border-color .3s; }
.stat-tile:hover { transform: translateY(-4px); border-color: rgba(215,25,32,.45); box-shadow: var(--lift-2); }
.stat-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(215,25,32,.25), transparent); }
.stat-tile > span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stats .roll { font: 700 3.2rem/1 Oswald, sans-serif; display: inline-flex; overflow: hidden; height: 1em; color: var(--text); }
.roll .dg { display: inline-block; height: 1em; overflow: hidden; }
.roll .dg-strip { display: flex; flex-direction: column; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.roll .dg-strip span { height: 1em; line-height: 1em; color: inherit; font-size: inherit; font-weight: inherit; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats .roll { font-size: 2.6rem; } }

/* ---------- Avatar stacks that fan apart ---------- */
.faces.fan .avatar { transition: margin .45s var(--spring, ease), transform .45s var(--spring, ease); }
.faces.fan .more { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-left: -9px; border-radius: 999px;
  background: #d71920; color: #fff; font: 700 .75rem Inter, sans-serif; box-shadow: 0 0 0 2px #0b0b0d; transition: margin .45s var(--spring, ease), transform .45s var(--spring, ease); }
.faces.fan:hover .avatar, .faces.fan:hover .more, a:hover > .faces.fan .avatar, a:hover .faces.fan .more { margin-left: 3px; }
.faces.fan:hover .avatar:first-child, a:hover .faces.fan .avatar:first-child { margin-left: 0; }
.faces.fan .avatar:hover { transform: translateY(-4px) scale(1.12); z-index: 2; }

/* ---------- Tilt cards with a tracking glare ---------- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt].tilting { transition: transform .12s linear, box-shadow .4s; }
.tilt-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 55%); mix-blend-mode: soft-light; }
[data-tilt].tilting .tilt-glare { opacity: 1; }

/* ---------- Sliding highlight behind the desktop nav ---------- */
.links { position: relative; }
.nav-pill { position: absolute; z-index: 0; height: 34px; border-radius: 999px; background: rgba(255,255,255,.1); pointer-events: none; opacity: 0;
  transition: transform .45s var(--spring, ease), width .45s var(--spring, ease), opacity .25s; }
.links > a, .links > form { position: relative; z-index: 1; }
.links.has-pill a:hover, .links.has-pill a.on { background: transparent !important; }
.tabs { position: relative; }
.tab-pill { position: absolute; top: 4px; height: calc(100% - 8px); border-radius: 999px; background: #d71920; box-shadow: 0 4px 12px rgba(215,25,32,.35); z-index: 0;
  transition: transform .45s var(--spring, ease), width .45s var(--spring, ease); }
.tabs.has-pill a { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; }
.tabs.has-pill a.on { color: #fff; }

/* ---------- Expanding-arrow buttons ---------- */
.btn-arrow { display: inline-flex !important; align-items: center; gap: 10px; padding-right: 8px !important; }
.btn-arrow .arr { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); color: #d71920;
  font-weight: 900; transition: width .45s var(--spring, ease), transform .45s var(--spring, ease); }
.btn-arrow.btn-ghost .arr { background: #d71920; color: #fff; }
.btn-arrow:hover .arr { width: 56px; border-radius: 999px; }
.btn-arrow.sm .arr { width: 26px; height: 26px; }

/* ---------- Badges: "New" with a live pulse ---------- */
.job-tags { display: inline-flex; gap: 8px; align-items: center; }
.badge-new { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; font: 700 .7rem Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #d71920, #ff3b44, #d71920); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.badge-new i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.8); animation: pulse 1.6s ease-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.going-count { position: relative; }
.going-count.bump { animation: bump .5s var(--spring, ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- How it works: line fills as you scroll ---------- */
.how { max-width: 820px; margin: 40px auto; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: grid; gap: 22px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline::after { background: linear-gradient(#ff3b44, #d71920); bottom: auto; height: calc(var(--fill, 0) * (100% - 20px)); box-shadow: 0 0 14px rgba(215,25,32,.6); }
.timeline li { display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; opacity: .45; transform: translateX(-6px); transition: opacity .5s, transform .5s var(--ease, ease); }
.timeline li.lit { opacity: 1; transform: none; }
.tl-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 1.2rem Oswald, sans-serif; background: var(--card); border: 2px solid var(--line); color: var(--muted); transition: background .4s, border-color .4s, color .4s, transform .5s var(--spring, ease); }
.timeline li.lit .tl-dot { background: #d71920; border-color: #d71920; color: #fff; transform: scale(1.08); box-shadow: 0 6px 18px rgba(215,25,32,.4); }
.timeline b { font: 700 1.2rem Oswald, sans-serif; text-transform: uppercase; }
.timeline p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Bouncy FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto; }
.accordion { display: grid; gap: 10px; }
.accordion details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift-1); overflow: hidden; transition: border-color .3s, box-shadow .4s; }
.accordion details[open] { border-color: rgba(215,25,32,.45); box-shadow: var(--lift-2); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(127,127,127,.15); font-size: 1.2rem; transition: transform .5s var(--spring, ease), background .3s; }
.accordion details[open] summary::after { transform: rotate(135deg); background: #d71920; color: #fff; }
.acc-body { overflow: hidden; }
.acc-body p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .badge-new, .badge-new i { animation: none; }
  .roll .dg-strip { transition: none; }
}
