/* ============================================================
   SCREEN SYNC — homepage v2 (staging)
   Split hero: left 2/3 = what we are (cycling inventory word),
   right 1/3 = Seed Hunt. Loaded after styles.css.
   ============================================================ */

/* ---------- split layout ---------- */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: 3rem;
}
.hero__main .hero__cta { margin-bottom: 0; }
.hero__split .hero__ticker { grid-column: 1 / -1; }

.hero__title--split {
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  margin-bottom: 1.4rem;
}

/* ---------- cycling inventory word ---------- */
.cycle {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  color: var(--cherry-bright);
  /* room for descenders (g, p) so they aren't clipped */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  /* clip only top/bottom (hides the sliding words); never cut a word's end */
  clip-path: inset(0 -100vw 0 -0.05em);
  transition: width 0.34s var(--ease-out);
  white-space: nowrap;
}

/* pixel sprite that rides just right of the word (dino-runner style) */
.cycle__sprite {
  position: absolute;
  left: calc(100% + 0.18em);
  bottom: 0.3em;
  width: 0.96em;
  height: 0.8em;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.cycle__sprite.is-pop { animation: spritePop 0.34s steps(5, end) both; }
@keyframes spritePop {
  0%   { transform: scale(0.25) translateY(20%); opacity: 0; }
  55%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.cycle__word {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  /* red gradient fill — same stops as the pixel sprite in v2.js */
  background: linear-gradient(135deg, #ff7a8c 0%, #e0435d 50%, #9e1f37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(85%);
  filter: blur(6px);
  transition: transform 0.34s var(--ease-out), opacity 0.34s var(--ease-out), filter 0.34s var(--ease-out);
}
.cycle__word.is-in {
  position: relative;
  opacity: 1;
  transform: none;
  filter: none;
}
.cycle__word.is-out {
  position: absolute;
  opacity: 0;
  transform: translateY(-85%);
  filter: blur(6px);
}

/* ---------- Seed Hunt card ---------- */
.hunt-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.5rem 1.4rem;
  background: rgba(22, 20, 18, 0.72);
  border: 1px solid rgba(194, 58, 82, 0.45);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(194, 58, 82, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(142, 31, 51, 0.25);
}
.hunt-card__scan {            /* slow CRT scanline sweep */
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(194, 58, 82, 0.09) 50%, transparent 100%);
  height: 40%;
  animation: huntScan 5s linear infinite;
}
@keyframes huntScan {
  from { transform: translateY(-100%); }
  to   { transform: translateY(260%); }
}
.hunt-card > *:not(.hunt-card__scan) { position: relative; }

.hunt-card__tag {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cherry-bright);
  margin-bottom: 1rem;
}
.hunt-card__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cherry-bright);
  box-shadow: 0 0 0 0 rgba(194, 58, 82, 0.7);
  animation: huntPulse 1.8s ease-out infinite;
}
@keyframes huntPulse {
  0%   { box-shadow: 0 0 0 0 rgba(194, 58, 82, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(194, 58, 82, 0); }
}
.hunt-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.hunt-card__title em { font-style: normal; color: var(--cherry-bright); }
.hunt-card__lead {
  font-size: 0.92rem;
  color: var(--beige-dim);
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.hunt-card__status {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(234, 227, 211, 0.1);
}
.hunt-card__city {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--beige-dim);
}
.hunt-card__timer { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.hunt-card__timer .cd-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px; padding: 0.4rem 0.3rem;
  background: rgba(142, 31, 51, 0.16);
  border: 1px solid rgba(194, 58, 82, 0.4);
  border-radius: 8px;
}
.hunt-card__timer .cd-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
  color: var(--cherry-bright);
}
.hunt-card__timer .cd-lbl {
  font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em;
  color: var(--beige-dim); margin-top: 0.2rem;
}
.hunt-card__canceled {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background: rgba(142, 31, 51, 0.16);
  border: 1px solid rgba(194, 58, 82, 0.4);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cherry-bright);
  text-shadow: 0 0 10px rgba(194, 58, 82, 0.6);
}

.hunt-card__seeds {
  list-style: none;
  border-top: 1px solid rgba(234, 227, 211, 0.1);
  padding-top: 0.6rem;
  margin-bottom: 0.9rem;
}
.hunt-card__seeds li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.42rem 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  border-bottom: 1px dashed rgba(234, 227, 211, 0.08);
}
.hunt-card__seeds li:last-child { border-bottom: none; }
.hunt-seed__n { color: var(--cherry-bright); }
.hunt-seed__code { color: var(--beige); font-weight: 600; }
.hunt-seed__code small { color: var(--beige-dim); font-weight: 400; margin-left: 0.4rem; }
.hunt-seed__state { color: var(--beige-dim); font-size: 0.64rem; }
.hunt-seed__state--live { color: var(--cherry-bright); }

.hunt-card__drops {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--beige-dim);
  line-height: 1.3;
  margin-bottom: 1.1rem;
}
.hunt-card__drops strong { color: var(--beige); font-weight: 500; }
.hunt-card__dropsnum {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cherry-bright);
}

.hunt-card__cta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.hunt-card__vote {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--beige);
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 227, 211, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hunt-card__vote:hover { color: var(--cherry-bright); border-color: var(--cherry-bright); }

/* ---------- Principles: problem-framing lead + a stat per pillar ---------- */
.pillars__lead {
  max-width: 60ch;
  margin: -0.4rem 0 2.6rem;
  color: var(--beige-dim);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
/* desktop: stat sits in the left column under the heading, paragraph spans the right */
.pillar > p:not(.pillar__stat) { grid-column: 2; grid-row: 1 / span 2; }
.pillar__head { grid-column: 1; grid-row: 1; }
.pillar .pillar__stat {
  grid-column: 1; grid-row: 2;
  align-self: end;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.7rem;
  max-width: none;
}
@media (max-width: 900px) {   /* single column: heading → paragraph → stat */
  .pillar > p:not(.pillar__stat), .pillar__head, .pillar .pillar__stat { grid-column: 1; grid-row: auto; }
  .pillar .pillar__stat { margin-top: 0.4rem; }
}
.pillar__stat b {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cherry-bright);
}
.pillar__stat span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--beige-dim);
}

/* nav CTA never wraps to two lines on phones */
.nav__inner .btn { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__split { grid-template-columns: 1fr; padding-bottom: 4rem; }
  .hunt-card { max-width: 560px; }
}
@media (max-width: 560px) {
  .hero__title--split { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hunt-card { padding: 1.3rem 1.1rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hunt-card__scan, .hunt-card__pulse { animation: none; }
  .cycle, .cycle__word { transition: none; filter: none; }
  .cycle__sprite.is-pop { animation: none; }
}
