/* B1 prototype: homepage-only layout. Existing character artwork is retained. */
body[data-page="home"] {
  --paper: rgb(var(--scene-paper, 240 240 237));
  --paper-deep: rgb(var(--scene-paper-deep, 222 222 218));
  --brown-deep: rgb(var(--scene-brown, 58 57 55));
  --ink: #271a13;
}
body[data-page="home"] .site-header { background: var(--paper); }
body[data-page="home"] .hero {
  position: relative;
  display: block;
  min-height: max(740px, calc(100svh - 78px));
}
body[data-page="home"] .hero-text {
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 4vw;
}
body[data-page="home"] .hero-text > div:first-child { grid-column: 1; }
body[data-page="home"] .hero .display { font-size: clamp(3rem, 6.5vw, 6.4rem); }
body[data-page="home"] .hero-foot {
  grid-column: 3;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.avatar-anchor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(30vw, 430px);
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
}
.avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  height: 100%;
  border: 1px solid #8b8177;
  background: var(--paper-deep);
  color: #493c32;
  pointer-events: none;
  transform-origin: top left;
}
.avatar-placeholder__label { font: 400 clamp(1.5rem, 3vw, 3rem)/1 Georgia, serif; letter-spacing: .08em; }
.avatar-placeholder__note { font: 12px/1.6 Arial, sans-serif; text-align: center; padding: 0 1rem; }
.scene-active .avatar-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  will-change: transform;
}
/* A reserved right gutter keeps the docked placeholder clear of content. */
.scene-active main > :not(.hero) { margin-right: var(--scene-gutter, 156px); }
.scene-active .hero { margin-right: 0; }
body[data-page="home"] .marquee { background: var(--paper-deep); }
body[data-page="home"] .particle-section { background: var(--brown-deep); }
body[data-page="home"] .project-card:nth-child(2) { background: var(--brown-deep); }
body[data-page="home"] main img { filter: saturate(var(--scene-saturation, .08)); }

@media (max-width: 1023px) {
  body[data-page="home"] .hero { min-height: auto; padding-bottom: 3rem; }
  body[data-page="home"] .hero-text { display: flex; min-height: auto; gap: 2rem; padding: 3rem 6vw; }
  body[data-page="home"] .hero-text > div:first-child { width: 100%; }
  body[data-page="home"] .hero-foot { flex-direction: row; align-items: center; width: 100%; }
  .avatar-anchor { position: relative; left: auto; top: auto; transform: none; width: min(64vw, 340px); margin: 0 auto; }
  .avatar-placeholder { min-height: 260px; }
}
body.scene-static .hero { min-height: auto; padding-bottom: 3rem; }
body.scene-static .hero-text { display: flex; min-height: auto; gap: 2rem; padding: 3rem 6vw; }
body.scene-static .hero-text > div:first-child { width: 100%; }
body.scene-static .hero-foot { flex-direction: row; align-items: center; width: 100%; }
body.scene-static .avatar-anchor { position: relative; left: auto; top: auto; transform: none; width: min(64vw, 340px); margin: 0 auto; }
body.scene-static .avatar-placeholder { min-height: 260px; }
