/* ============================================================
   MISFITS — Creative Gaming Agency
   Design tokens from Figma "LANDING PAGES" (node 1:690)
   ============================================================ */
:root {
  --dark: #141316;
  --yellow: #FFFF00;
  --purple: #9C07FF;
  --purple-brands: #9C07FF;
  --purple-square: #9C07FF;
  --card-bg: rgba(22, 22, 22, 0.91);
  --card-border: #FFFF00;
  --grey-1: #9c97b5;
  --grey-2: #d9d6e8;
  --grey-3: #818181;
  --grey-4: #5b5b5b;
  --text-soft: #e3e0f0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-dm: 'DM Mono', monospace;
  --font-space-mono: 'Space Mono', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
  padding-top: 92px; /* reserves the space the fixed nav sits over */
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============ NAV ============ */
.nav {
  position: fixed; /* sticky breaks here because html/body set overflow-x:hidden */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--dark);
  height: 92px;
}
.nav__inner {
  /* no max-width: the logo/CTA must hug the real browser edges at any window
     width, with the same 47px inset the footer logo uses */
  height: 100%;
  padding: 0 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  gap: 46px;
  font-family: var(--font-dm);
  font-size: 13.6px;
  letter-spacing: 0.272px;
  color: var(--grey-2);
}
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--yellow); }
/* current page indicator (underline rule lives in the polish section) */
.nav__links a.is-active { color: var(--yellow); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta {
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 10px 17px;
  font-family: var(--font-dm);
  font-weight: 500;
  font-size: 13.12px;
  letter-spacing: 0.2624px;
  color: #15102d;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav__cta:hover { background: transparent; color: var(--yellow); }
.nav__cta--menu { display: none; } /* lives inside the mobile dropdown only */
.nav__burger {
  display: none; /* mobile-only (≤700px) */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--yellow);
  transition: transform .2s ease, opacity .2s ease;
}
/* three bars → X when open */
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
/* hero + ticker together always fill exactly one screen */
.hero-block {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 92px);
  height: calc(100svh - 92px);
}
.hero {
  position: relative;
  width: 100%;
  flex: 1 1 0;   /* hero takes all remaining space after ticker */
  min-height: 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ TICKER (services keywords) ============ */
.ticker {
  background: var(--dark);
  border-top: 1px solid var(--yellow);
  border-bottom: 1px solid var(--yellow);
  overflow: hidden;
  padding: 8px 0;
  flex-shrink: 0;  /* never shrink — hero absorbs any leftover space */
  scroll-margin-top: 92px;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
}
.ticker__group span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.17vw, 41.6px);
  line-height: 1.6;
  white-space: nowrap;
}
.ticker__group img { width: 9px; height: 9px; flex-shrink: 0; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ MISSION ============ */
.mission {
  position: relative;
  padding: clamp(80px, 9.9vw, 190px) 0;
}
.mission__decor-left {
  position: absolute;
  left: 0;
  top: 120px;
  width: clamp(40px, 7.2vw, 138px);
  height: auto;
  pointer-events: none;
}
.mission__decor-right {
  position: absolute;
  right: -20.5%;
  top: 47%;
  width: clamp(380px, 40.2vw, 772px);
  height: auto;
  pointer-events: none;
}
.mission__inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(56px, 11vw, 212px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.mission__kicker {
  font-family: var(--font-dm);
  font-size: 15.2px;
  letter-spacing: 1.82px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 17px;
}
.mission__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 7vw, 96.6px);
  line-height: 1.36;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}
@media (min-width: 1101px) {
  .mission__title { font-size: clamp(38px, 5.03vw, 96.6px); }
}
.mission__title--highlight {
  background: var(--yellow);
  color: var(--dark);
  width: fit-content;
  max-width: 100%;
  padding-right: 0.3em;
}
.mission__title--highlight .light { font-weight: 300; }
.mission__sub {
  font-family: var(--font-body);
  font-size: clamp(20px, 1.79vw, 34.4px);
  line-height: 1.24;
  color: var(--text-soft);
}
.mission__audiences {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.audience {
  flex: 1 1 300px;
  max-width: 485px;
  height: 70px;
  background: rgba(2, 2, 2, 0.51);
  border: 2.5px solid var(--yellow);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 42px;
  transition: background .2s ease;
}
.audience:hover { background: var(--yellow); }
.audience:hover p { color: #000; }
.audience:hover u { color: var(--purple); }
.audience__square {
  width: 13px;
  height: 13px;
  background: var(--purple-square);
  flex-shrink: 0;
}
.audience p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.04vw, 20px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color .2s ease;
}
.audience u { transition: color .2s ease; }

/* ============ SERVICES ============ */
.services {
  position: relative;
  overflow: hidden;
}
/* Yellow X-pattern band that sits ONLY behind the cards (banner stays on black) */
.services__band {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 3.4vw, 46px) 24px;
}
.services__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.services__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: clamp(40px, 4.5vw, 86px) 0;
}
.services__banner {
  background: var(--yellow);
  padding: clamp(8px, 0.6vw, 12px) clamp(20px, 2vw, 40px);
  min-width: min(1055px, 92vw);
  text-align: center;
}
.services__banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 4.17vw, 80px);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.27;
}
.services__banner h2 span { color: var(--purple); }
.services__cards {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  width: 363px;
  min-height: 464px;
  /* frosted glass: the yellow X-pattern band shows through, blurred */
  background: rgba(22, 22, 22, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid #e1ff00;
  padding: 27px 26px;
  display: flex;
  flex-direction: column;
  gap: 31px;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__head img { width: 38px; height: 38px; }
.card__plus {
  position: relative;
  width: 17px;
  height: 17px;
}
.card__plus::before,
.card__plus::after {
  content: '';
  position: absolute;
  background: var(--yellow);
  left: 50%;
  top: 50%;
}
.card__plus::before { width: 17px; height: 1.6px; transform: translate(-50%, -50%); }
.card__plus::after  { width: 1.6px; height: 17px; transform: translate(-50%, -50%); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 31.2px;
  letter-spacing: -0.624px;
  text-transform: uppercase;
  line-height: 1.077;
  color: #fff;
}
.card ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card li {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  line-height: 31px;
  color: #fff;
  padding-left: 21px;
  position: relative;
}
.card li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--yellow);
}

/* ---- brands strip ---- */
.brands {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-bottom: 17px;
}
.brands__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20.74px;
  letter-spacing: 1.77px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.brands__bar {
  background: var(--purple-brands);
  height: 67px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.brands__track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: scroll-left 45s linear infinite;
}
.brands__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex-shrink: 0;
}
.brands__group img { width: auto; flex-shrink: 0; }

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: clamp(60px, 4vw, 80px) 0 clamp(60px, 5vw, 100px);
}
.testimonials__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.5vw, 70px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.testimonials__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(0px, 5.6vw, 108px);
}
.testimonials__kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14.75px;
  letter-spacing: 1.77px;
  text-transform: uppercase;
  color: var(--yellow);
}
.testimonials__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 4.95vw, 95px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.34;
  color: #fff;
}
.testimonials__title span { color: var(--yellow); }
.testimonials__counter {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.74px;
  letter-spacing: 1.77px;
  color: var(--grey-4);
  padding-bottom: 24px;
  white-space: nowrap;
}
.testimonials__stage {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 33px);
}
.testimonials__navbtn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.9px;
  text-transform: uppercase;
  color: var(--grey-3);
  flex-shrink: 0;
  transition: color .2s;
}
.testimonials__navbtn:hover { color: var(--yellow); }
.testimonials__navbtn img { width: 13px; }
.testimonial-card {
  position: relative;
  flex: 1;
  border: 1px solid var(--yellow);
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.testimonial-card__decor-top {
  position: absolute;
  top: 1px;
  right: 1px;
  width: clamp(180px, 31%, 357px);
  pointer-events: none;
}
.testimonial-card__decor-bottom {
  position: absolute;
  bottom: 0;
  right: 1px;
  width: clamp(190px, 32.7%, 375px);
  pointer-events: none;
}
.testimonial-card__quotes {
  position: absolute;
  top: 0;
  left: 38px;
  display: flex;
  gap: 6px;
}
.testimonial-card__quotes img { width: 36px; }
.testimonial-card__slides {
  position: relative;
  width: 100%;
  padding: 120px 66px 45px;
  display: flex;
  flex-direction: column;
}
.slide {
  display: none;
  flex-direction: column;
  gap: 9px;
}
.slide.is-active { display: flex; flex: 1; animation: fade-in .35s ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.slide__text {
  flex: 1;
  justify-content: center;
  max-width: 1160px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.14;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.slide__author {
  display: flex;
  align-items: center;
  gap: 13px;
}
.slide__logo { width: 111px; height: 74px; object-fit: contain; }
.slide__divider {
  width: 1px;
  height: 53px;
  background: #fff;
}
.slide__who {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  line-height: 26.2px;
}
.slide__name {
  font-family: var(--font-space-mono);
  font-weight: 700;
  font-size: 16.38px;
  color: #fff;
}
.slide__role {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.38px;
  color: var(--grey-3);
}

/* ============ CTA ============ */
.cta {
  position: relative;
  padding-top: 35px;
}
.cta__strip {
  height: 15px;
  background: var(--purple);
  margin-bottom: 20px;
}
.cta__decor-right {
  position: absolute;
  right: -7.2%;
  top: -140px;
  width: clamp(240px, 25.7vw, 493px);
  height: auto;
  z-index: 2;
  pointer-events: none;
}
.cta__decor-left {
  position: absolute;
  left: -163px;
  top: 150px;
  width: clamp(220px, 21.8vw, 419px);
  height: auto;
  z-index: 2;
  pointer-events: none;
}
.cta__body {
  position: relative;
  background: var(--purple);
  padding: clamp(50px, 4.5vw, 87px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.9vw, 94.1px);
  letter-spacing: -0.029em;
  text-transform: uppercase;
  line-height: 1.14;
  color: #fff;
  text-align: center;
}
.cta__banner {
  background: var(--yellow);
  padding: 0 clamp(12px, 1vw, 20px);
}
.cta__banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.9vw, 94.1px);
  letter-spacing: -0.029em;
  text-transform: uppercase;
  line-height: 1.06;
  color: #000;
  text-align: center;
}
.cta__sub {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(15px, 1.03vw, 19.8px);
  line-height: 1.68;
  text-align: center;
  color: #f3eeff;
}
.cta__button {
  margin-top: 20px;
  background: var(--dark);
  min-width: min(377px, 90vw);
  padding: 17px 24px;
  text-align: center;
  font-family: var(--font-dm);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.38px;
  color: var(--yellow);
  transition: transform .15s ease;
}
.cta__button:hover { transform: scale(1.04); }

/* ============ WARNING TICKER ============ */
.warning {
  background: var(--dark);
  overflow: hidden;
  padding: 7px 0;
}
.warning__track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.warning__group {
  display: flex;
  align-items: center;
  gap: 29px;
  padding-right: 29px;
  flex-shrink: 0;
}
.warning__group span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19.8px;
  line-height: 33px;
  color: #fff;
  white-space: nowrap;
}
.warning__italic { font-style: italic; }
.warning__group img { width: 8px; height: 8px; flex-shrink: 0; }

/* ============ FOOTER ============ */
.footer {
  padding: 24px 47px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 77px;
}
.footer__brand img { width: 72px; height: 30px; object-fit: contain; }
.footer__brand p {
  font-family: var(--font-dm);
  font-size: 13.6px;
  color: var(--grey-1);
  white-space: nowrap;
}
.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a {
  font-family: var(--font-dm);
  font-size: 13.6px;
  color: var(--grey-2);
  transition: color .2s;
}
.footer__links a:hover { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 19px;
}
.footer__bottom p {
  font-family: var(--font-dm);
  font-size: 12.48px;
  color: var(--grey-1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav__links { gap: 24px; font-size: 12.5px; }
  .services__bg { display: none; }
  .services__band {
    background: var(--yellow);
    padding: 40px 16px;
  }
  .services__cards { width: 100%; }
  .mission__decor-right { opacity: .5; }

  /* testimonial: card first, PREV/NEXT side by side below */
  .testimonials__stage { flex-direction: column; align-items: stretch; }
  .testimonial-card { order: 1; width: 100%; }
  .testimonials__navbtn { order: 2; }
  .testimonials__navbtn--prev { align-self: flex-start; }
  .testimonials__navbtn--next { align-self: flex-end; margin-top: -32px; }
  .testimonial-card__slides { padding: 110px 32px 40px; }
}
@media (max-width: 700px) {
  /* phone header: logo left + hamburger right; links live in a dropdown
     panel under the bar, opened by the hamburger (Start a Project is the
     last item inside the panel) */
  .nav__inner { padding: 0 24px; }
  .nav__logo img { height: 28px; }
  .nav__cta--bar { display: none; }
  .nav__burger { display: flex; }
  .nav__links { display: none; }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 22px 24px 26px;
    font-size: 13.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav--open .nav__cta--menu {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 18px;
  }
}
@media (max-width: 700px) {
  /* hero scales proportionally with the window: locked to the video's own
     aspect ratio (1920:940) instead of a fixed vh, so it grows/shrinks with
     device width and is never over- or under-cropped on any phone size */
  .hero { height: auto; aspect-ratio: 1920 / 940; min-height: 200px; }

  /* mission: shrink decor, keep title clear, hide swirl behind boxes */
  .mission { padding: 64px 0; }
  .mission__inner { padding: 0 24px 0 56px; gap: 22px; }
  .mission__decor-left { top: 60px; width: 36px; }
  .mission__decor-right { display: none; }
  .mission__sub { font-size: 18px; }

  /* audience pills: one line each, no wrap */
  .audience {
    flex: 1 1 100%;
    max-width: none;
    height: 56px;
    padding: 0 18px;
    gap: 14px;
    border-width: 2px;
  }
  .audience__square { width: 10px; height: 10px; }
  .audience p { font-size: clamp(12px, 3.9vw, 16px); white-space: nowrap; }

  .services__banner { min-width: 0; width: calc(100% - 32px); padding: 8px 12px; }
  .services__banner h2 { white-space: nowrap; }
  .services__cards { padding: 32px 16px; }
  .card { width: 100%; max-width: 400px; min-height: 0; }

  .brands__label { font-size: 15px; padding: 0 16px; }

  .testimonials__header { flex-wrap: wrap; }
  .testimonials__counter { padding-bottom: 12px; }
  .testimonial-card__slides { padding: 90px 20px 32px; }
  .testimonial-card__quotes { left: 20px; }
  .testimonial-card__quotes img { width: 26px; }
  .testimonial-card__decor-top { width: 130px; }
  .testimonial-card__decor-bottom { width: 140px; }
  .slide__text { font-size: 16px; }
  .slide__logo { width: 80px; height: 54px; }
  .slide__role { font-size: 10px; }

  .cta__sub br { display: none; }
  .cta__sub { padding: 0 16px; }
  .cta__button { min-width: 0; width: calc(100% - 32px); max-width: 377px; font-size: 16px; }
  .cta__decor-left, .cta__decor-right { display: none; }

  .footer { padding: 20px 24px; }
  .footer__brand { gap: 24px; }
}

/* ============================================================
   POLISH — interactivity, motion & theme flourishes
   (custom cursor, scroll reveals, hero shader-feel overlay,
   hover lifts, themed selection/scrollbar, progress bar)
   ============================================================ */

/* ---- themed text selection + scrollbar + focus ---- */
::selection {
  background: #ffffff;
  color: #000000;
}
/* Negative selection for yellow/light background sections */
.rules ::selection,
.rule ::selection,
.whoweare__band ::selection,
.services__banner ::selection,
.cta__banner ::selection,
.bmission__bar--yellow ::selection,
.howweplay ::selection,
.audience:hover ::selection,
.nav__cta ::selection {
  background: #000000;
  color: #ffffff;
}
html { scrollbar-color: var(--purple) #101016; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #101016; }
::-webkit-scrollbar-thumb { background: var(--purple); }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }
:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 3px; }

/* ---- scroll progress bar (element injected by main.js) ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--purple));
  z-index: 101; /* above the fixed nav */
  pointer-events: none;
}

/* ---- scroll reveal (class added by main.js; no-JS stays visible) ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---- hero: CRT scanlines + vignette overlay, slow drift zoom ---- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 58%, rgba(10, 10, 16, .5) 100%);
}
.hero__bg {
  animation: hero-drift 20s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ---- hover lifts & micro-interactions ---- */
.card {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--purple-square);
  box-shadow: 0 16px 44px rgba(255, 255, 0, .14);
}

/* ============================================================
   INTERACTIVE STARS (Shared)
   ============================================================ */
.interactive-stars {
  height: auto;
}
.interactive-stars .star-wrapper,
.interactive-stars .star {
  transform-box: view-box;
}
.interactive-stars .star-wrapper {
  animation: star-spin 5s ease-in-out infinite;
}
.interactive-stars .star-wrapper--1,
.interactive-stars .star--1 { transform-origin: 17px 17.5px; }
.interactive-stars .star-wrapper--2,
.interactive-stars .star--2 { transform-origin: 71.5px 17.5px; }
.interactive-stars .star-wrapper--3,
.interactive-stars .star--3 { transform-origin: 126px 17.5px; }

/* Left-to-right (1 -> 2 -> 3) */
.interactive-stars.interactive-stars--ltr .star-wrapper--1 { animation-delay: 0s; }
.interactive-stars.interactive-stars--ltr .star-wrapper--2 { animation-delay: 1s; }
.interactive-stars.interactive-stars--ltr .star-wrapper--3 { animation-delay: 2s; }

/* Right-to-left (3 -> 2 -> 1) */
.interactive-stars.interactive-stars--rtl .star-wrapper--3 { animation-delay: 0s; }
.interactive-stars.interactive-stars--rtl .star-wrapper--2 { animation-delay: 1s; }
.interactive-stars.interactive-stars--rtl .star-wrapper--1 { animation-delay: 2s; }

.interactive-stars .star {
  transition: transform var(--swipe-duration, 0s) cubic-bezier(0.25, 1, 0.5, 1);
}
.interactive-stars .star.is-swiped {
  transform: rotate(var(--swipe-target-angle));
}

@keyframes star-spin {
  0% { transform: rotate(0deg); }
  20%, 100% { transform: rotate(360deg); }
}

.card li { transition: transform .2s ease; }
.card li:hover { transform: translateX(4px); }

.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.testimonials__navbtn img { transition: transform .2s ease; }
.testimonials__navbtn--prev:hover img { transform: translateX(-4px); }
.testimonials__navbtn--next:hover img { transform: translateX(4px); }

.footer__links a { transition: color .2s ease; }
.footer__links a:hover { color: var(--yellow); }

.audience { transition: background .2s ease, transform .25s ease; }
.audience:hover { transform: translateY(-3px); }

.cta__button { transition: transform .2s ease, box-shadow .2s ease; }
.cta__button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(10, 10, 16, .45);
}

/* ---- custom cursor (mouse devices only; injected by main.js) ----
   Viewfinder brackets with a spinning X, swapping to the bobbing Misfits
   skull over interactive elements — carreradsgn.lovable.app behavior,
   Misfits palette (yellow fill, hard purple offset shadow). */
@media (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
  .cursor-fx {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity .15s ease-out;
    mix-blend-mode: difference;
  }
  body.cursor-on .cursor-fx--default { opacity: 1; }
  .cursor-fx--default svg {
    display: block;
    transform: scale(.6);
    transform-origin: center center;
    transition: transform 200ms cubic-bezier(.34, 1.56, .64, 1);
  }
  body.cursor-down .cursor-fx--default svg { transform: scale(.45); }
  .cursor-x-rotate {
    transform-origin: 25.65px 27.215px;
    transform-box: view-box;
  }
  body.cursor-hover .cursor-x-rotate {
    animation: cursor-x-rotate-kf 1.5s linear infinite;
  }
}
@keyframes cursor-x-rotate-kf {
  to { transform: rotate(360deg); }
}

/* ---- calm everything down for reduced-motion users ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__bg { animation: none; }
  .ticker__track, .brands__track, .warning__track { animation-duration: 120s; }
  .cursor-fx { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

