/* Homepage only — every rule scoped under body.home */
body.home main.home-main { max-width: 1120px; padding-top: 56px; }

/* drifting starfield layers */
body.home .home-drift {
  position: absolute;
  inset: -10% 0 0 0;
  height: 220%;
  background-repeat: repeat-y;
  background-size: 100% 50%;
  opacity: 0.55;
  will-change: transform;
}
body.home .home-drift.far { background-image: url("/assets/stars-far.svg?v=30"); animation: home-drift 160s linear infinite; }
body.home .home-drift.near { background-image: url("/assets/stars-near.svg?v=30"); opacity: 0.4; animation: home-drift 90s linear infinite; }
@keyframes home-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* hero */
body.home header.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  text-align: left;
  margin-bottom: 56px;
  min-height: 380px;
}
body.home .hero-copy h1 {
  font-size: clamp(56px, 9vw, 112px);
  line-height: 1;
  margin: 6px 0 18px;
}
body.home .kicker { display: inline-flex; align-items: center; gap: 10px; }
body.home .kick-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(122, 240, 255, 0.6);
  animation: home-pulse 2.4s ease-in-out infinite;
}
@keyframes home-pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
body.home .hero-tag {
  margin: 0 0 12px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  background: linear-gradient(90deg, #e8fbff, var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.home .hero-copy .lead { max-width: 520px; font-size: 15.5px; }

body.home .hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
}
body.home .hero-art .ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(122, 240, 255, 0.35);
  box-shadow: 0 0 30px rgba(122, 240, 255, 0.15) inset, 0 0 24px rgba(168, 85, 247, 0.18);
}
body.home .hero-art .ring.r1 {
  border-top-color: var(--cyan);
  border-right-color: transparent;
  animation: home-spin 14s linear infinite;
}
body.home .hero-art .ring.r2 {
  inset: 16%;
  border-color: rgba(192, 132, 252, 0.4);
  border-bottom-color: var(--violet);
  border-left-color: transparent;
  animation: home-spin 9s linear infinite reverse;
}
@keyframes home-spin { to { transform: rotate(360deg); } }
body.home .hero-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.45), rgba(122, 240, 255, 0.12) 55%, transparent 72%);
  filter: blur(18px);
}
body.home .hero-cat {
  position: relative;
  width: 70%;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 14px rgba(122, 240, 255, 0.55)) drop-shadow(0 0 32px rgba(168, 85, 247, 0.4));
  animation: home-float 5.5s ease-in-out infinite;
}
@keyframes home-float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
body.home .hero-floor {
  position: absolute;
  bottom: 9%;
  width: 46%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(122, 240, 255, 0.45), transparent 70%);
  filter: blur(4px);
  animation: home-shadow 5.5s ease-in-out infinite;
}
@keyframes home-shadow { 50% { transform: scaleX(0.8); opacity: 0.6; } }

/* glass cards */
body.home .home-cards { gap: 22px; }
body.home .home-cards .card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 26, 60, 0.62), rgba(10, 9, 24, 0.72));
  border: 1px solid rgba(168, 120, 255, 0.26);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s, box-shadow 0.25s;
}
body.home .home-cards .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, var(--cyan), transparent 40%, transparent 60%, var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
body.home .home-cards a.card:hover,
body.home .home-cards a.card:focus-visible {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 34px rgba(122, 240, 255, 0.18);
  outline: none;
}
body.home .home-cards a.card:hover::before,
body.home .home-cards a.card:focus-visible::before { opacity: 1; }
body.home .home-cards .thumb { height: 150px; background: linear-gradient(160deg, rgba(16, 24, 40, 0.75), rgba(8, 10, 20, 0.6)); }
body.home .home-cards .meta { position: relative; padding: 18px 20px 20px; }
body.home .card-idx {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: Orbitron, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(122, 240, 255, 0.45);
}
body.home .home-cards h2 { margin: 0 0 6px; font-size: 20px; }
body.home .home-cards .meta p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
body.home .card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
body.home .card-go i { font-style: normal; transition: transform 0.25s; }
body.home a.card:hover .card-go i { transform: translateX(6px); }

/* mobile */
@media (max-width: 820px) {
  body.home main.home-main { padding-top: 32px; }
  body.home header.home-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    min-height: 0;
    margin-bottom: 36px;
  }
  body.home .hero-art { order: -1; max-width: 230px; }
  body.home .hero-copy .lead { margin: 0 auto; }
  body.home .home-cards { grid-template-columns: 1fr; gap: 14px; }
  body.home .home-cards .card { flex-direction: row; align-items: stretch; }
  body.home .home-cards .thumb { width: 112px; height: auto; min-height: 112px; flex: none; }
  body.home .home-cards .meta { padding: 14px 16px; }
  body.home .home-cards .meta p { margin-bottom: 8px; font-size: 13px; }
  body.home .home-cards h2 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home .home-drift,
  body.home .hero-art .ring,
  body.home .hero-cat,
  body.home .hero-floor,
  body.home .kick-dot { animation: none !important; }
  body.home .home-cards .card,
  body.home .card-go i { transition: none; }
  body.home .home-cards a.card:hover { transform: none; }
}
