/* CJP Telangana — shared styles (mobile-first, no frameworks) */

:root {
  --paper: #efe6d4;
  --ink: #1a1512;
  --red: #b3261e;
  --ink-soft: #4a3f36;
  --rule: rgba(26, 21, 18, 0.25);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 18% 12%, rgba(140, 105, 60, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 78%, rgba(120, 85, 45, 0.09) 0%, transparent 50%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red);
}

a:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Display type ---------- */

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

.red {
  color: var(--red);
}

/* ---------- Top nav ---------- */

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 14px 0;
  border-bottom: 2px solid var(--ink);
}

.topnav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}

.topnav a:hover {
  color: var(--red);
}

.topnav .nav-protests {
  margin-left: auto;
}

.topnav .nav-protests[aria-current] {
  color: var(--red);
}

.topnav .nav-rights {
  color: var(--red);
  border: 2px solid var(--red);
  padding: 4px 10px;
}

.topnav .nav-rights:hover {
  background: var(--red);
  color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 40px 0 48px;
}

.badge {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red);
  background: var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Shown until the mascot image has actually decoded; a missing file never shows a broken icon */
.badge-fallback {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.badge img.ok {
  opacity: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.5rem);
}

.hero h1 span {
  display: block;
}

.tagline {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 16px 0 32px;
}

.cta {
  display: block;
  max-width: 30rem;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--red);
  color: var(--paper);
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.cta-main {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  line-height: 1.1;
}

.cta-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ---------- Sections ---------- */

.section {
  padding: 40px 0;
  border-top: 2px solid var(--ink);
}

.kicker {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 8px;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(2rem, 8.5vw, 3rem);
  margin-bottom: 18px;
}

.section h3 {
  font-size: 1.5rem;
  margin: 28px 0 10px;
}

.section p {
  margin: 0 0 1em;
}

.section p:last-child {
  margin-bottom: 0;
}

.pull {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--red);
}

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Placeholder content that must be filled in before launch */
.placeholder {
  display: inline-block;
  padding: 4px 10px;
  border: 2px dashed var(--red);
  color: var(--red);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Social links ---------- */

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.socials a,
.socials .pending {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.25);
  color: var(--ink);
  text-decoration: none;
}

.socials a:hover {
  background: var(--ink);
  color: var(--paper);
}

.socials .label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
}

.socials .handle {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.socials .pending {
  border-style: dashed;
  color: var(--ink-soft);
}

/* ---------- Lists (rights page) ---------- */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--rule);
}

.list li:last-child {
  border-bottom: 0;
}

.list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.5;
}

.list.say li::before {
  content: "✓";
  color: var(--ink);
}

.list.dont li::before {
  content: "✕";
  color: var(--red);
}

.list.steps {
  counter-reset: step;
}

.list.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--red);
}

.list.steps li {
  padding-left: 40px;
}

.hard-rule {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: var(--paper);
  background: var(--red);
  padding: 1px 8px;
}

/* ---------- Legal disclaimer callout (mandatory, must stay prominent) ---------- */

.callout {
  margin: 0 0 28px;
  padding: 18px 18px 18px 20px;
  border: 3px solid var(--red);
  border-left-width: 12px;
  background: rgba(179, 38, 30, 0.08);
  box-shadow: 5px 5px 0 var(--ink);
}

.callout-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--red);
  margin: 0 0 8px;
}

.callout p {
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Legal-aid helpline box ---------- */

.legal-aid {
  margin: 24px 0;
  padding: 16px 18px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.legal-aid-title {
  margin: 0 0 6px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  line-height: 1.1;
}

.legal-aid-title a {
  color: var(--paper);
  background: var(--red);
  padding: 0 8px;
  text-decoration: none;
}

.legal-aid p:last-child {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 40px 0 48px;
  border-top: 2px solid var(--ink);
}

.footer-nav {
  margin: 0 0 28px;
}

.footer-nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
}

.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.domain {
  margin: 14px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .hero {
    padding: 64px 0 72px;
  }

  .section {
    padding: 56px 0;
  }

  .socials {
    grid-template-columns: 1fr 1fr;
  }

  .socials li:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta {
    transition: none;
  }
}

/* ---------- Motion layer (Lenis + GSAP; everything degrades to static) ---------- */

/* Lenis owns smooth scrolling once it boots; native smooth-scroll would fight it. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Scroll progress bar */
.scrollbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 50;
  pointer-events: none;
}

.scrollbar i {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Split headings: each word rises out of its own mask */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split .wi {
  display: inline-block;
  will-change: transform;
}

/* ---------- Pinned beats (Oct 10) ---------- */

.section-intro {
  padding-bottom: 8px;
}

.section-flush {
  border-top: 0;
  padding-top: 8px;
}

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.beat {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.beat-num {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 10px;
}

.beat-head {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1.02;
  margin: 0 0 14px;
}

.beat p:last-child {
  margin: 0;
  max-width: 34rem;
}

.beat-pips {
  display: none;
}

/* Enhanced: tall track, sticky stage, one beat at a time */
.beats-track.is-pinned {
  height: 300vh;
}

.is-pinned .beats-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.is-pinned .beats-stage > .wrap {
  width: 100%;
}

.is-pinned .beats {
  position: relative;
  min-height: 22rem;
}

.is-pinned .beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.is-pinned .beat.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.is-pinned .beat-pips {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.beat-pips i {
  flex: 1;
  height: 4px;
  background: var(--rule);
  transition: background 0.4s ease;
}

.beat-pips i.on {
  background: var(--red);
}

/* ---------- Marquee band ---------- */

main {
  overflow-x: clip;
}

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 3px solid var(--red);
  padding: 12px 0;
  transform: rotate(-1.5deg);
  margin: 24px -8px;
}

.marquee-row {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-row.gsap-driven {
  animation: none;
}

.marquee span {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.pull.big {
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: 1;
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row {
    animation: none;
  }
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 40px 0 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.countdown[hidden] {
  display: none;
}

.cd-label {
  width: 100%;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--red);
}

.cd-unit {
  font-size: 1rem;
  color: var(--ink-soft);
}

.cd-unit b {
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.8rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}

/* ---------- Hero video slot (scroll-scrubbed once media/hero.mp4 exists) ---------- */

.hero-stage {
  position: relative;
}

.hero-video,
.hero-scrim {
  display: none;
}

.hero-track.has-video .hero-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* Cream wash so ink headlines stay legible over any footage */
.hero-track.has-video .hero-scrim {
  display: block;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(239, 230, 212, 0.85) 0%, rgba(239, 230, 212, 0.35) 70%),
    linear-gradient(0deg, var(--paper) 0%, transparent 25%);
}

.hero-stage > .wrap {
  position: relative;
}

.hero-track.is-scrub {
  height: 220vh;
}

.hero-track.is-scrub .hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-track.is-scrub .hero-stage > .wrap {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-track.is-scrub .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

/* ---------- Illustration frames ---------- */

.frame {
  margin: 24px 0 28px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red);
  background: var(--paper);
  overflow: hidden;
}

.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
}

.frame.small {
  max-width: 360px;
}

.frame.lost {
  margin: 0 auto 24px;
  max-width: 220px;
}

/* ---------- Press links ---------- */

.press {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.press-label {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.press ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.press a {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.press a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- Emergency card (rights page) ---------- */

.ecard {
  margin: 24px 0 16px;
  padding: 20px;
  border: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 6px 6px 0 var(--red);
  display: grid;
  gap: 14px;
}

.ecard-title {
  margin: 0 0 4px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: var(--red);
}

.ecard label {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ecard input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  border-radius: 0;
}

.ecard input:focus {
  outline: none;
  border-bottom-color: var(--red);
  background: rgba(179, 38, 30, 0.05);
}

.ecard-print {
  justify-self: start;
  margin-top: 6px;
  padding: 12px 20px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: var(--paper);
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.ecard-print:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.ecard-print:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Print ---------- */

@media print {
  /* Scroll animations may have left content mid-reveal; print everything as-is. */
  * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
    min-height: 0;
    background-image: none;
  }

  .scrollbar,
  .skip,
  .topnav,
  .marquee,
  .hero-video,
  .hero-scrim,
  .cta,
  .countdown,
  .footer-nav,
  .ecard-print,
  .beat-pips {
    display: none !important;
  }

  .hero-track.is-scrub,
  .beats-track.is-pinned {
    height: auto !important;
  }

  .is-scrub .hero-stage,
  .is-pinned .beats-stage {
    position: static !important;
    height: auto !important;
  }

  .is-pinned .beats {
    min-height: 0;
  }

  .is-pinned .beat {
    position: static;
    padding: 12px 0;
  }

  .section {
    padding: 16px 0;
  }

  .hero {
    padding: 8px 0 16px;
  }

  .section h2,
  .section h3 {
    break-after: avoid;
  }

  .list li,
  .callout,
  .ecard {
    break-inside: avoid;
  }

  /* Keep the ink-filled labels and red callout readable on paper */
  .kicker,
  .hard-rule,
  .legal-aid,
  .callout {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* "Print this card" prints only the card */
  .print-card body > *:not(main),
  .print-card main .section:not(#card),
  .print-card #card > :not(.ecard) {
    display: none !important;
  }

  .print-card #card {
    border: 0;
    padding: 0;
  }

  .print-card .ecard {
    max-width: 12cm;
    background: #fff;
  }
}
