:root {
  --bg: #121217;
  --bg-elevated: rgba(28, 28, 38, 0.82);
  --bg-soft: rgba(37, 37, 50, 0.62);
  --text: #f6efe6;
  --text-muted: #c9c1ba;
  --line: rgba(255, 255, 255, 0.08);
  --pink: #ff2d8f;
  --pink-soft: rgba(255, 45, 143, 0.16);
  --crimson: #d11149;
  --red-glow: rgba(209, 17, 73, 0.22);
  --lavender: #5656a7;
  --stone: #8a8693;
  --bone: #f3ede4;
  --bark: #7c4825;
  --bark-deep: #4f2e17;
  --cyan: #21d6ff;
  --lime: #d7ea48;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1200px;
}

html[data-theme="light"] {
  --bg: #f7f2ea;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.72);
  --text: #17151a;
  --text-muted: #5e5862;
  --line: rgba(23, 21, 26, 0.09);
  --red-glow: rgba(209, 17, 73, 0.11);
  --pink-soft: rgba(255, 45, 143, 0.1);
  --shadow-lg: 0 22px 60px rgba(57, 31, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);

  background:
    /* 🎥 YOUR GIF (lowest layer) */
    /* url("assets/kurohi gif 11 seconds.gif") center / cover no-repeat fixed, */

    /* existing color styling (kept intact) */
    radial-gradient(circle at top left, rgba(86, 86, 167, 0.24), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 45, 143, 0.14), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, black) 100%);

  min-height: 100vh;
  overflow-x: hidden;

  /* ✨ makes GIF feel subtle and integrated */
  background-blend-mode: overlay, normal, normal, normal;
}

a {
  color: inherit;
  text-decoration: none;
}

.video-frame-portrait {
  width: min(100%, 760px);
  height: 430px;
  min-height: unset;
  margin: 0 auto;
}

.video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  filter: contrast(1.05) saturate(1.1);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* .image-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  filter: contrast(1.05) saturate(1.1);
} */

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding-bottom: 48px;
}

.pixel-particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.pixel-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 0px;
  box-shadow: 0 0 1px currentColor;
  opacity: 0;
  will-change: transform, opacity;
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(110vh) translateX(0px);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  50% {
    transform: translateY(40vh) translateX(-12px);
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-20vh) translateX(10px);
    opacity: 0;
  }
}

.topbar,
.banner,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 16px 14px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(18, 18, 23, 0.85), rgba(18, 18, 23, 0.45));
  z-index: 10;
}

html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(247, 242, 234, 0.92), rgba(247, 242, 234, 0.56));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-kanji {
  font-family: "Press Start 2P", system-ui;
  font-size: 0.95rem;
  color: var(--pink);
  text-shadow: 0 0 18px var(--pink-soft);
}

.brand-word {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.86rem;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}

.toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--stone), var(--lavender));
  padding: 3px;
  display: inline-flex;
  align-items: center;
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bone);
  transform: translateX(0);
  transition: transform 180ms ease;
}

html[data-theme="light"] .toggle-thumb {
  transform: translateX(18px);
}

.toggle-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.banner {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 45, 143, 0.18);
  background: linear-gradient(135deg, rgba(255, 45, 143, 0.1), rgba(142, 86, 167, 0.12)), var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.banner-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.banner-pill,
.eyebrow,
.card-kicker,
.floating-label {
  font-family: "Press Start 2P", system-ui;
  text-transform: uppercase;
  font-size: 0.55rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.banner-pill {
  position: relative;
  color: var(--bone);
  padding: 8px 10px;
  border-radius: 999px;

  backdrop-filter: blur(2px);

  /* ✅ solid border */
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* base background (fallback) */
  background: linear-gradient(90deg, var(--crimson), var(--pink));

  /* keep text above animation */
  z-index: 0;
  overflow: hidden;

  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.banner-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(90deg, var(--crimson), var(--pink));

  z-index: -1;

  /* ✨ animation happens HERE instead */
  animation: livePulse 2.8s ease-in-out infinite;
}

.banner-pill:hover, .banner-pill:focus-visible {
  transform: translateY(-1px);
}

@keyframes livePulse {
  0% {
    opacity: 0.4;
    filter: brightness(0.85);
    box-shadow: 0 0 0px var(--red-glow);
  }

  50% {
    opacity: 1;
    filter: brightness(.5);
    box-shadow:
      0 0 8px var(--pink-soft),
      0 0 18px var(--red-glow);
  }

  100% {
    opacity: 0.4;
    filter: brightness(0.85);
    box-shadow: 0 0 0px var(--red-glow);
  }
}

.banner p {
  margin: 0;
  color: var(--text-muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 30px;
  align-items: center;
  padding: 56px 0 24px;
}

.eyebrow {
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero h1,
.section h2,
.kickstarter-card h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  display: grid;
  gap: 12px;
}

.hero-kanji {
  font-family: "Press Start 2P", system-ui;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  background: linear-gradient(180deg, #ff78be 0%, var(--pink) 40%, var(--crimson) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 45, 143, 0.18));
}

.hero-title {
  font-size: clamp(2.9rem, 7vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-text,
.section-copy p,
.info-card p,
.feature-card p,
.cta-copy p,
.kickstarter-copy p,
.footer p,
.section-note {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-actions,
.kickstarter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--crimson), var(--pink));
  box-shadow: 0 16px 35px var(--red-glow);
}

.button-secondary {
  background: var(--bg-soft);
  border-color: var(--line);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ✨ custom KUROHI bullet */
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;

  width: 6px;
  height: 6px;

  background: linear-gradient(180deg, var(--pink), var(--crimson));
  border-radius: 1px;

  box-shadow:
    0 0 6px var(--pink-soft),
    0 0 12px var(--red-glow);
}

.hero-visual {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    linear-gradient(135deg, rgba(86, 86, 167, 0.26), rgba(255, 45, 143, 0.12)),
    var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
  pointer-events: none;
}

.image-frame-lg {
  min-height: 500px;
}

.image-frame-xl {
  min-height: 400px;
}

/* updated mid-layout boxes */
.media-grid .tall,
.media-grid .wide,
.media-grid .square {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  min-height: unset;
  height: auto;
  justify-self: center;
}

.placeholder-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 26px;
  gap: 12px;
}

.placeholder-label {
  font-weight: 800;
  font-size: 1rem;
}

.placeholder-note {
  color: var(--text-muted);
  max-width: 30ch;
  margin: 0 auto;
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(20, 20, 28, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  max-width: 220px;
}

html[data-theme="light"] .floating-card {
  background: rgba(255,255,255,0.86);
}

.floating-card-top {
  top: 18px;
  left: -18px;
}

.floating-card-bottom {
  right: -18px;
  bottom: 18px;
}

.floating-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.section {
  padding: 42px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.info-card,
.feature-card,
.kickstarter-card,
.cta-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.info-card {
  padding: 24px;
}

.info-card h3,
.feature-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.section h2,
.kickstarter-card h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(300px, 500px));
  justify-content: center;
  align-items: start;
}

.media-grid .square:nth-of-type(3),
.media-grid .square:nth-of-type(4) {
  grid-column: span 1;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.feature-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, var(--pink), var(--crimson));
  border-radius: 2px;
  box-shadow: 8px 0 0 rgba(255, 45, 143, 0.24), 16px 0 0 rgba(255, 45, 143, 0.12);
}

.cta-panel {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.kickstarter-card {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255, 45, 143, 0.14), transparent 28%),
    radial-gradient(circle at left bottom, rgba(86, 86, 167, 0.18), transparent 36%),
    var(--bg-elevated);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 30px 0 10px;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Press Start 2P", system-ui;
  color: var(--pink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.main-images {
  width: 460px;
}

.main-images-smaller {
  width: 400px;
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .feature-grid,
  .kickstarter-card {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(300px, 500px));
    justify-content: center;
  }

  .kickstarter-card,
  .section-heading,
  .topbar {
    align-items: start;
  }

  .kickstarter-card,
  .topbar,
  .banner {
    flex-direction: column;
  }

  .floating-card-top,
  .floating-card-bottom {
    position: static;
    margin-top: 12px;
    max-width: unset;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-kanji {
    font-size: 1.8rem;
  }

  .image-frame-lg {
    min-height: 380px;
  }

  .image-frame-xl {
    min-height: 300px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .media-grid .tall,
  .media-grid .wide,
  .media-grid .square {
    width: min(100%, 300px);
    max-width: 300px;
    aspect-ratio: 1 / 1;
  }

  .button {
    width: 100%;
  }

  .video-frame-portrait {
    width: min(100%, 100%);
    height: 320px;
  }
}