/*==============================================================================
  CSIGNAL HERO
  ----------------------------------------------------------------------------
  Extracted from /csignal/assets/page.css so the v2 homepage hero is the same
  component as the CSignal landing page. Only the hero families are taken:
  cs-hero, cs-h1, cs-lede, cs-deco, cs-deck, cs-track, cs-reco, cs-geo, cs-btn.
  The nav, section, marquee and footer rules are deliberately left behind, as
  is the unscoped "html, body" reset, which would have fought style.css.

  Every class here is cs- prefixed and exists nowhere else on the Charle page,
  so nothing needs re-scoping and nothing can leak.

  UPSTREAM: /csignal/assets/page.css. If the CSignal hero changes, re-extract
  rather than hand-editing this file.
==============================================================================*/

.cs-fontvars, .cs { --cs-display: "Bricolage Grotesque"; --cs-body: "Hanken Grotesk"; --cs-mono: "IBM Plex Mono"; }
.cs { --cs-max: 1600px; --ink:#0E1C16; --lime:#D3F502; --paper:#F3F5EE; --blue:#2F6BFF; --coral:#FF5A2C; background: var(--ink); font-family: var(--cs-body), system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.cs *, .cs *::before, .cs *::after { box-sizing: border-box; }
.cs :where(p, h1, h2, h3, blockquote) { margin: 0; }
.cs a { text-decoration: none; }
.cs-btn { display: inline-block; font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px; transition: background .12s ease-out, border-color .12s ease-out, color .12s ease-out; }
.cs-btn--lime { background: var(--lime); color: var(--ink); }
.cs-btn--lime:hover { background: #E2FF3A; }
.cs-btn--outline { border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.cs-btn--outline:hover { border-color: var(--lime); color: var(--lime); }
.cs-btn--ghost { background: #F1F3EC; color: #55665C; }
.cs-btn--ink { background: var(--ink); color: var(--paper); }
.cs-btn--ink:hover { background: #1B3226; }
.cs-btn__ext { display: inline-block; width: 15px; height: 15px; margin-left: 6px; vertical-align: -2px; }
.cs-btn--lg { font-size: clamp(14px, 1.4vw, 17px); padding: clamp(12px, 1.5vw, 19px) clamp(19px, 2.7vw, 34px); }
.cs-btn--sm { font-size: 13px; padding: 11px 19px; }
.cs-hero { position: relative; padding: 66px 60px 90px; overflow-x: clip; }
.cs-hero__deco { position: absolute; inset: 0; max-width: calc(var(--cs-max) + 120px); margin-inline: auto; overflow-x: visible; overflow-y: clip; pointer-events: none; z-index: 0; }
.cs-deco { position: absolute; display: block; will-change: transform; transform: translate3d(calc(var(--mx, 0) * var(--depth, 0) * 1px), calc(var(--my, 0) * var(--depth, 0) * 1px), 0); }
.cs-deco__in { display: block; animation: cs-float 8s ease-in-out infinite; }
.cs-deco--store { top: 90px; right: -220px; }
.cs-deco--leak { top: 300px; right: -60px; }
.cs-deco--ask { top: 62px; right: 500px; }
.cs-deco--spike { bottom: -34px; right: 430px; }
.cs-deco--signal { bottom: 300px; right: 640px; }
.cs-deco--ask .cs-deco__in { --rot: -16deg; }
.cs-deco--leak .cs-deco__in { --rot: 12deg; }
.cs-deco--store .cs-deco__in { animation: none; }
.cs-h1__ln { white-space: nowrap; }
.cs-h1__spark { display: inline-block; height: .62em; width: auto; vertical-align: 0.62em; margin-left: 2px; transform: rotate(-14deg) scaleX(-1); }
.cs-hero__in { position: relative; z-index: 1; max-width: var(--cs-max); margin-inline: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,480px); gap: 56px; align-items: center; }
.cs-h1 { font-family: var(--cs-display), sans-serif; font-weight: 800; font-size: clamp(34px, 7vw, 104px); line-height: .88; letter-spacing: -.04em; color: #fff; }
.cs-hero__copy { container-type: inline-size; }
.cs-h1 { font-size: clamp(34px, 9.8cqw, 104px); }
.cs-h1 em { font-style: italic; color: var(--lime); }
.cs-lede { font-size: clamp(15px, 2.4vw, 21px); line-height: 1.5; color: rgba(255,255,255,0.72); max-width: 560px; margin-top: 34px; }
.cs-acts { display: flex; align-items: center; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.cs-hero__cards { display: flex; flex-direction: column; gap: 14px; }
.cs-deck { position: relative; --deck-scale: 1; height: calc(var(--deck-h) * var(--deck-scale)); box-sizing: content-box; --bleed-x: 90%; --bleed-t: 200px; --bleed-b: 300px; padding: var(--bleed-t) var(--bleed-x) var(--bleed-b); margin: calc(-1 * var(--bleed-t)) calc(-1 * var(--bleed-x)) calc(-1 * var(--bleed-b)); overflow: hidden; pointer-events: none; }
.cs-track { display: flex; flex-direction: column; gap: 14px; will-change: transform; animation: cs-track 25.8s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.cs-deckwrap { position: relative; }
.cs-deckdeco { position: absolute; display: none; z-index: -1; }
.cs-deckdeco--a { top: -30px; right: -16px; transform: rotate(8deg); }
.cs-deckdeco--b { bottom: -46px; left: -40px; transform: rotate(-14deg); }  /* Bottom LEFT, opposite the coral at top right. Also the right crop for
     this shape: Leak is a C opening to the right, so hanging it off the
     left edge keeps the opening on the page. Off the right edge, which is
     where it used to sit, the crop ate the one feature it has. */
.cs-deck__card { height: var(--ch); flex: none; transform-origin: 0% 130%; animation: cs-deck-card 25.8s cubic-bezier(0.16, 1, 0.3, 1) infinite; animation-fill-mode: both; animation-delay: var(--d); }
.cs-deck__card > * { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.cs-reco { background: #fff; border-radius: 22px; padding: 24px 26px; overflow: hidden; }
.cs-reco__top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.cs-reco__badge { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: #14211B; }
.cs-reco__icon { width: 30px; height: 30px; border-radius: 9px; background: #EAF0FF; display: flex; align-items: center; justify-content: center; }
.cs-reco__conf { font-family: var(--cs-mono), monospace; font-size: 11px; color: var(--blue); background: #EAF0FF; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.cs-reco__h { font-family: var(--cs-display), sans-serif; font-weight: 700; font-size: 24px; line-height: 1.08; letter-spacing: -.02em; color: #14211B; margin-top: 14px; }
.cs-reco__b { font-size: 14px; line-height: 1.5; color: #55665C; margin-top: 9px; }
.cs-reco__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 18px; flex-wrap: nowrap; }
.cs-reco__lbl { font-family: var(--cs-mono), monospace; font-size: 11px; color: #55665C; letter-spacing: .06em; }
.cs-reco__big { font-family: var(--cs-display), sans-serif; font-weight: 800; font-size: 36px; letter-spacing: -.02em; color: #14211B; line-height: 1; }
.cs-reco__btns { display: flex; gap: 8px; }
.cs-geo { background: var(--lime); border-radius: 22px; padding: 24px 26px; overflow: hidden; }
.cs-geo__lbl { font-family: var(--cs-mono), monospace; font-size: 11px; letter-spacing: .12em; color: #4a6b04; text-transform: uppercase; }
.cs-geo__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; }
.cs-geo__h { font-family: var(--cs-display), sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.cs-geo__bars { display: flex; align-items: flex-end; gap: 7px; }
.cs-geo__bars i { width: 16px; border-radius: 4px; display: block; }

/* ── Animation ──────────────────────────────────────────────────── */
@keyframes cs-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  50%      { transform: translate3d(0, -9px, 0) rotate(calc(var(--rot, 0deg) + 1.4deg)); }
}
@keyframes cs-deck-card {
  0%      { transform: translate(60%, 180px) rotate(8deg); opacity: 0; }
  1.5%    { opacity: 1; }
  8%      { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  27.5%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  33.333% { transform: translate(-46%, -40px) rotate(-10deg); opacity: 0; }
  100%    { transform: translate(-46%, -40px) rotate(-10deg); opacity: 0; }
}
@keyframes csmarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes cs-ping { 0%,100% { opacity: .25; transform: scale(.8) } 50% { opacity: 1; transform: scale(1.2) } }
@keyframes cs-feed {
  0%,20%   { transform: translateY(0) }
  25%,45%  { transform: translateY(-32px) }
  50%,70%  { transform: translateY(-64px) }
  75%,95%  { transform: translateY(-96px) }
  100%     { transform: translateY(-128px) }
}
@keyframes cs-road {
  0%, 26%  { transform: translateY(0);    background: var(--lime); color: var(--ink); }
  33%, 59% { transform: translateY(34px); background: rgba(255,255,255,.1); color: #fff; }
  66%, 92% { transform: translateY(68px); background: rgba(255,255,255,.1); color: #fff; }
  100%     { transform: translateY(0);    background: var(--lime); color: var(--ink); }
}
@keyframes cs-stage {
  0%       { opacity: 0; transform: translateY(9px) scale(.96); }
  3%, 10%  { opacity: 1; transform: translateY(0) scale(1); }
  12.5%    { opacity: 0; transform: translateY(-9px) scale(.98); }
  100%     { opacity: 0; transform: translateY(-9px) scale(.98); }
}
@keyframes cs-who {
  0%       { opacity: 0; transform: scale(.5); }
  3.5%     { opacity: 1; transform: scale(1.09); }
  6%, 10%  { opacity: 1; transform: scale(1); }
  12.5%    { opacity: 0; transform: scale(.72); }
  100%     { opacity: 0; transform: scale(.72); }
}
@keyframes cs-cmtdot {
  0%   { opacity: 0; transform: scale(0); }
  20%  { opacity: 1; transform: scale(1.25); }
  34%  { opacity: 1; transform: scale(1); }
  84%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.4); }
}
@keyframes cs-opshead { 0% { opacity: .95 } 55%, 100% { opacity: 0 } }
@keyframes cs-stagefade { 0% { opacity: 0 } 1.5%, 11% { opacity: 1 } 12.5%, 100% { opacity: 0 } }
@keyframes cs-opsbg {
  0.0%, 10.0% { background-color: #EAF0FF; }
  12.5%, 22.5% { background-color: #EAF0FF; }
  25.0%, 35.0% { background-color: #EFEBFE; }
  37.5%, 47.5% { background-color: #EFEBFE; }
  50.0%, 60.0% { background-color: #FFF1EB; }
  62.5%, 72.5% { background-color: #FFF1EB; }
  75.0%, 85.0% { background-color: #F4FBDC; }
  87.5%, 97.5% { background-color: #F4FBDC; }
  100% { background-color: #EAF0FF; }
}
@keyframes cs-opshue {
  0.0%, 10.0% { background-color: #2F6BFF; }
  12.5%, 22.5% { background-color: #2F6BFF; }
  25.0%, 35.0% { background-color: #6C4CF1; }
  37.5%, 47.5% { background-color: #6C4CF1; }
  50.0%, 60.0% { background-color: #FF5A2C; }
  62.5%, 72.5% { background-color: #FF5A2C; }
  75.0%, 85.0% { background-color: #D3F502; }
  87.5%, 97.5% { background-color: #D3F502; }
  100% { background-color: #2F6BFF; }
}
@keyframes cs-ops {
  0.0%, 10.0% { width: 12.5%; background-color: #2F6BFF; }
  12.5%, 22.5% { width: 25.0%; background-color: #2F6BFF; }
  25.0%, 35.0% { width: 37.5%; background-color: #6C4CF1; }
  37.5%, 47.5% { width: 50.0%; background-color: #6C4CF1; }
  50.0%, 60.0% { width: 62.5%; background-color: #FF5A2C; }
  62.5%, 72.5% { width: 75.0%; background-color: #FF5A2C; }
  75.0%, 85.0% { width: 87.5%; background-color: #D3F502; }
  87.5%, 97.5% { width: 100.0%; background-color: #D3F502; }
  100% { width: 12.5%; background-color: #2F6BFF; }
}
@keyframes csrec {
  0%, 34% { opacity: 0; transform: translate(12px, 12px) }
  46%, 80% { opacity: 1; transform: translate(0, 0) }
  92%, 100% { opacity: 0; transform: translate(12px, 12px) }
}
@keyframes csring {
  0%, 14% { opacity: 0; transform: scale(.94) }
  24%, 66% { opacity: 1; transform: scale(1) }
  78%, 100% { opacity: 0; transform: scale(.94) }
}
@keyframes csscan {
  0%, 6% { opacity: 0; top: 12% }
  16% { opacity: 1 }
  44% { opacity: 1; top: 78% }
  54%, 100% { opacity: 0; top: 78% }
}
@keyframes matblk { 0% { opacity: 0; transform: translateY(9px) scaleY(.3) } 8%, 76% { opacity: 1; transform: none } 92%, 100% { opacity: 0; transform: translateY(9px) scaleY(.3) } }
@keyframes matval { 0% { opacity: 0 } 8%, 76% { opacity: 1 } 92%, 100% { opacity: 0 } }
@keyframes cssca { 0% { opacity: 0 } 3%, 44% { opacity: 1 } 49%, 100% { opacity: 0 } }
@keyframes csscb { 0%, 49% { opacity: 0 } 55%, 94% { opacity: 1 } 99%, 100% { opacity: 0 } }
@keyframes csty { 0%, 4% { width: 0 } 15%, 100% { width: var(--w) } }
@keyframes cschip { 0%, 16% { opacity: 0; transform: scale(.86) } 21%, 100% { opacity: 1; transform: scale(1) } }
@keyframes cssrcup { 0%, 26% { transform: translateY(0) } 36%, 100% { transform: translateY(-52px) } }
@keyframes cssrclit { 0%, 26% { background: rgba(255,255,255,0.07) } 36%, 100% { background: var(--lime) } }
@keyframes csgup { 0%, 68% { transform: translateY(0) } 80%, 100% { transform: translateY(-78px) } }
@keyframes csglit { 0%, 68% { background: rgba(255,255,255,0.07) } 80%, 100% { background: var(--lime) } }
@keyframes cs-track {
  0.000% { transform: translateY(-0px); }
  11.400% { transform: translateY(-0px); }
  16.667% { transform: translateY(-300px); }
  28.067% { transform: translateY(-300px); }
  33.333% { transform: translateY(-490px); }
  44.733% { transform: translateY(-490px); }
  50.000% { transform: translateY(-790px); }
  61.400% { transform: translateY(-790px); }
  66.667% { transform: translateY(-1018px); }
  78.067% { transform: translateY(-1018px); }
  83.333% { transform: translateY(-1208px); }
  94.733% { transform: translateY(-1208px); }
  100% { transform: translateY(-1436px); }
}
@keyframes cs-track-one {
  0.000% { transform: translateY(-0px); }
  11.400% { transform: translateY(-0px); }
  16.667% { transform: translateY(-266px); }
  28.067% { transform: translateY(-266px); }
  33.333% { transform: translateY(-532px); }
  44.733% { transform: translateY(-532px); }
  50.000% { transform: translateY(-798px); }
  61.400% { transform: translateY(-798px); }
  66.667% { transform: translateY(-1064px); }
  78.067% { transform: translateY(-1064px); }
  83.333% { transform: translateY(-1330px); }
  94.733% { transform: translateY(-1330px); }
  100% { transform: translateY(-1596px); }
}
@keyframes cs-deck-card-one {
  0%     { transform: translate(52%, 110px) rotate(7deg); opacity: 0; }
  2.5%   { opacity: 1; }
  5.267%  { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  16.667% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  21%    { transform: translate(-44%, -70px) rotate(-9deg); opacity: 0; }
  100%   { transform: translate(-44%, -70px) rotate(-9deg); opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cs-deco__in { animation: none; transform: rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-deck { height: auto !important; padding: 0; margin: 0; overflow: visible; }
  .cs-track { animation: none; transform: none; }
  .cs-deck__card { animation: none; opacity: 1; transform: none; height: auto !important; }
  .cs-deck__card:nth-child(n+3) { display: none; }
}

@media (max-width: 1080px) {
  .cs-hero__in, .cs-proof { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .cs-deco--leak, .cs-deco--spike, .cs-deco--signal { display: none; }
  .cs-deco--store { top: 30px; right: -300px; }
  .cs-deco--store svg { height: 560px; }
  .cs-deco--ask { top: 40px; right: 20px; }
  .cs-deco--ask svg { height: 72px; }
}

@media (max-width: 720px) {
  .cs-hero { padding-top: 40px; padding-bottom: 34px; }
  .cs-reco, .cs-geo { padding: 18px 18px; border-radius: 18px; }
  .cs-reco__h { font-size: 20px; }
  .cs-reco__b { font-size: 13px; }
  .cs-reco__big { font-size: 27px; }
  .cs-reco__foot { gap: 10px; padding-top: 14px; }
  .cs-reco__btns { gap: 6px; }
  .cs-reco__foot .cs-btn--sm { font-size: 12px; padding: 9px 13px; }
  .cs-geo__h { font-size: 30px; }
  .cs-deck { height: calc(var(--deck-h1) * var(--deck-scale)); --bleed-t: 90px; --bleed-b: 120px; }
  .cs-deck__card { height: var(--deck-h1); animation-name: cs-deck-card-one; animation-delay: var(--d1); display: flex; flex-direction: column; justify-content: center; }
  .cs-deck__card > * { height: auto; }
  .cs-track { animation-name: cs-track-one; }
  .cs-deckdeco { display: block; }
  .cs-hero__in { gap: 34px; }
}


/* ── Marquee ───────────────────────────────────────────────────── */
.cs-mq { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 22px 0; overflow: hidden; }
.cs-mq__track { display: flex; width: max-content; animation: csmarquee 32s linear infinite; }
.cs-mq__run { display: flex; align-items: center; gap: 54px; padding-right: 54px; }
.cs-mq__item { display: inline-flex; align-items: center; gap: 54px; font-family: var(--cs-display), sans-serif; font-weight: 700; font-size: 19px; color: rgba(255,255,255,0.45); white-space: nowrap; }
.cs-mq__item i { color: var(--lime); font-size: 15px; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .cs-mq__track { animation: none } }
@keyframes csmarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
