/* ── HERO SPLIT LAYOUT ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text .hero-sub {
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-link-note {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--dark);
  opacity: 0.5;
  line-height: 1.5;
}

/* ── BUILDER SCENE WRAPPER ── */
.hero-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.builder-scene {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 32px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  position: relative;
}

/* ground line */
.builder-scene::after {
  content: '';
  position: absolute;
  bottom: 36px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--light-gray);
  border-radius: 1px;
}

/* ── BLOCK GRID ── */
.builder-grid {
  position: relative;
  /* 7 cols × (24px + 4px gap) − 4px = 192px */
  width: 192px;
  /* 5 rows × (24px + 4px gap) − 4px = 136px */
  height: 136px;
  flex-shrink: 0;
}

.grid-block {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--orange);
  border-radius: 3px;
  opacity: 0;
  transform: scale(0) rotate(-15deg);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.12s ease;
  box-shadow:
    0 3px 0 #b85d3d,
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.grid-block.placed {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── CHARACTER ── */
.builder-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  animation: char-idle 2.2s ease-in-out infinite;
  position: relative;
}

@keyframes char-idle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.builder-character.placing {
  animation: char-place 0.32s ease forwards;
}

@keyframes char-place {
  0%   { transform: translateX(0) rotate(0deg); }
  35%  { transform: translateX(-5px) rotate(-7deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

/* Hat */
.char-hat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.char-hat {
  width: 20px;
  height: 10px;
  background: var(--orange);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 0 #b85d3d;
}

/* Head */
.char-head {
  width: 32px;
  height: 32px;
  background: #c49a6c;
  border-radius: 5px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 2;
}

.char-eyes {
  display: flex;
  gap: 7px;
}

.char-eye {
  width: 5px;
  height: 5px;
  background: var(--dark);
  border-radius: 50%;
  opacity: 0.85;
}

.char-mouth {
  width: 11px;
  height: 5px;
  border: 2px solid var(--dark);
  border-top: none;
  border-radius: 0 0 6px 6px;
  opacity: 0.75;
}

/* Body */
.char-body {
  width: 38px;
  height: 42px;
  background: var(--orange);
  border-radius: 4px;
  margin-top: 3px;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 0 #b85d3d;
}

/* Small logo mark on chest */
.char-body::after {
  content: 'LB';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0.04em;
}

/* Arm — extends left toward grid when placing */
.char-arm {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 22px;
  height: 8px;
  background: var(--orange);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 2px 0 #b85d3d;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform 0.14s ease-out;
}

.builder-character.placing .char-arm {
  transform: translateY(-50%) scaleX(1);
}

/* Legs */
.char-legs {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  position: relative;
  z-index: 2;
}

.char-leg {
  width: 13px;
  height: 20px;
  background: var(--dark);
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-animation { order: -1; }

  .hero-text h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

  .builder-scene {
    transform: scale(0.88);
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  .builder-scene {
    transform: scale(0.72);
    transform-origin: center;
  }
}
