/* Home page for creators (owner, 16 Nov 2026: "more dynamic … make me want it"). The hero demonstrates the product: an idea box
   you can type into straight away, a showcase that types out the sentence each model was made from before revealing it, and a
   drifting wall of gallery models underneath. Vault: System/Step 1 - Land on BlockTool.md. */

/* ── Idea box ─────────────────────────────────────────────── */
body.home-page .hero-prompt { margin-top: 30px; max-width: 560px; }
body.home-page .hero-prompt-label { display: block; margin-bottom: 10px; color: var(--mc-gold); font: 600 15px/1.3 var(--mc-display); letter-spacing: 0; }
body.home-page .hero-prompt-box {
  display: flex; align-items: stretch; gap: 0;
  border: 2px solid var(--mc-outline, #0a0b0b); background: var(--mc-slot); box-shadow: var(--mc-recess);
}
body.home-page .hero-prompt-box:focus-within { border-color: var(--mc-gold); }
body.home-page .hero-prompt-box input {
  flex: 1 1 auto; min-width: 0; padding: 16px 16px; border: 0; background: transparent; color: var(--mc-text);
  font: 500 17px/1.3 var(--mc-body); outline: 0;
}
body.home-page .hero-prompt-box input::placeholder { color: #8d958f; }
body.home-page .hero-prompt-go { flex: none; margin: 6px; padding: 0 20px; white-space: nowrap; display: inline-flex; align-items: center; font-size: 15px; }
body.home-page .hero-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.home-page .hero-kinds button {
  min-height: 34px; padding: 0 14px; border: 2px solid var(--mc-outline, #0a0b0b); border-radius: 2px; background: var(--mc-stone);
  color: var(--mc-muted); font: 600 13px var(--mc-body); box-shadow: var(--mc-bevel); cursor: pointer;
}
body.home-page .hero-kinds button:hover { color: var(--mc-text); background: var(--mc-stone-hover); }
body.home-page .hero-kinds button[aria-pressed="true"] { color: #fff; background: var(--mc-grass); box-shadow: var(--mc-bevel-green); }
body.home-page .hero-kinds button:focus-visible, body.home-page .hero-prompt-box input:focus-visible { outline: 2px solid var(--mc-gold); outline-offset: 2px; }
body.home-page .hero-actions { margin-top: 18px; }

/* ── Showcase: the sentence, then the model ───────────────── */
body.home-page .showcase-prompt {
  position: absolute; left: 0; right: 0; top: 52px; z-index: 1; margin: 0; padding: 4px 22px 26px;
  color: var(--mc-text); font: 600 17px/1.45 var(--mc-body); pointer-events: none;
  text-shadow: 0 2px 0 #0008; background: linear-gradient(180deg, #171e1be6 55%, #171e1b00);
}
body.home-page .showcase-prompt:empty { display: none; }
body.home-page .showcase-prompt:not(:empty)::before { content: '“'; color: var(--mc-gold); }
body.home-page .showcase-prompt.typing::after { content: ''; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--mc-gold); animation: home-caret .8s steps(1) infinite; }
body.home-page .showcase-prompt.done::after { content: '”'; color: var(--mc-gold); }
@keyframes home-caret { 50% { opacity: 0; } }
body.home-page :is(.hero-model-canvas, .hero-model).awaiting { opacity: 0; }
body.home-page :is(.hero-model-canvas, .hero-model).revealing { animation: home-reveal .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes home-reveal { from { opacity: 0; transform: translateY(14px) scale(.92); filter: brightness(1.8); } to { opacity: 1; transform: none; filter: none; } }

/* ── Drifting wall of models ──────────────────────────────── */
body.home-page .model-ribbon { position: relative; overflow: hidden; padding: 6px 0 26px; display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
body.home-page .model-ribbon[hidden] { display: none; }
body.home-page .ribbon-row { display: flex; gap: 14px; width: max-content; animation: home-drift 90s linear infinite; }
body.home-page .ribbon-row-reverse { animation-direction: reverse; animation-duration: 110s; }
body.home-page .model-ribbon:hover .ribbon-row { animation-play-state: paused; }
body.home-page .ribbon-tile {
  flex: none; display: grid; grid-template-rows: 1fr auto; width: 132px; height: 150px; overflow: hidden; text-decoration: none;
  border: 2px solid var(--mc-outline, #0a0b0b); background: #1b221f; box-shadow: var(--mc-recess);
}
body.home-page .ribbon-tile img { width: 100%; height: 118px; object-fit: contain; image-rendering: auto; }
body.home-page .ribbon-tile span { padding: 4px 8px 6px; color: var(--mc-muted); font: 500 11px/1.2 var(--mc-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home-page .ribbon-tile:hover span { color: var(--mc-text); }
@keyframes home-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 650px) {
  body.home-page .hero-prompt-box { flex-direction: column; }
  body.home-page .hero-prompt-go { margin: 0 6px 6px; min-height: 48px; justify-content: center; }
  /* Phones: the sentence gets its own space above the model rather than covering it. */
  body.home-page .hero-scene { display: flex; flex-direction: column; }
  body.home-page .showcase-prompt { position: static; order: -1; width: 100%; box-sizing: border-box; min-height: 5.4em; padding: 58px 16px 4px; font-size: 15px; background: none; }
  body.home-page .ribbon-tile { width: 108px; height: 126px; }
  body.home-page .ribbon-tile img { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page .ribbon-row { animation: none; }
  body.home-page :is(.hero-model-canvas, .hero-model).revealing { animation: none; }
  body.home-page .showcase-prompt.typing::after { animation: none; }
}
/* The narrowest phones: the quoted sentence speaks for itself, and the label would meet the animation button. */
@media (max-width: 360px) { body.home-page .showcase-kicker { display: none; } }
