/* ===== INDEX: MERGED LAYER COMPOSITE HERO ===== */

@import url("https://fonts.cdnfonts.com/css/minecraft-4");

.depth-banner {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  isolation: isolate;
  background: #080d2d;
  line-height: 0;
}

/* Single-image sunset hero — image defines height, no crop, no cover */
.depth-banner--sunset {
  line-height: 0;
  background: #080d2d;
}

.depth-banner--sunset .depth-bg-layer {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  z-index: 1;
}

.depth-banner--sunset .depth-copy-stack {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100% - 2rem));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
  animation: sunset-copy-in 0.85s ease both;
}

@keyframes sunset-copy-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.depth-banner--sunset .depth-copy-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 2px;
  background: radial-gradient(
    ellipse 90% 100% at 50% 50%,
    rgba(8, 13, 45, 0.18) 0%,
    rgba(8, 13, 45, 0.06) 58%,
    transparent 82%
  );
}

.depth-banner--sunset .depth-eyebrow {
  margin: 0 0 1.25rem;
  letter-spacing: 0.32em;
  font-size: clamp(0.8125rem, 1.35vw, 1rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(5, 8, 23, 0.7);
}

.depth-banner--sunset .depth-title {
  font-size: clamp(2.25rem, 6.2vw, 4.75rem);
  line-height: 1.22;
  letter-spacing: 0.055em;
  margin: 0 0 1.75rem;
  max-width: 20ch;
  text-wrap: balance;
  text-shadow:
    0.07em 0 #3d3d3d,
    0.07em 0.07em #3d3d3d,
    0 0.07em #3d3d3d,
    0.14em 0.14em 0 #1a1a1a,
    0 0 24px rgba(5, 8, 23, 0.4);
}

.depth-banner--sunset .depth-copy-stack .action-amethyst {
  margin-top: 0.25rem;
  padding: 1rem 2.5rem;
  font-size: clamp(0.875rem, 1.25vw, 1.0625rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 0 rgba(0, 0, 0, 0.38),
    0 10px 32px rgba(5, 8, 23, 0.32);
}

.depth-banner--sunset .depth-copy-stack .action-amethyst:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 12px 28px rgba(5, 8, 23, 0.32);
}

@media (max-width: 768px) {
  .depth-banner--sunset .depth-copy-stack {
    top: 50%;
    width: min(94%, 24rem);
    padding: 1.25rem 1.5rem;
  }

  .depth-banner--sunset .depth-title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    max-width: 16ch;
    margin-bottom: 1.5rem;
  }

  .depth-banner--sunset .depth-eyebrow {
    letter-spacing: 0.24em;
    margin-bottom: 1rem;
  }

  .depth-banner--sunset .depth-copy-stack .action-amethyst {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-banner--sunset .depth-copy-stack {
    animation: none;
  }
}

/* Night composite hero — waterfall from hero-night-meta.json */
body.page-night .depth-fall-layer {
  left: 56%;
  top: calc(45.5% - 1mm);
  width: 7.2%;
}

body.page-night .depth-fg-layer {
  display: block;
  top: 70.5613%;
  z-index: 9;
}

/* Full merged scene — native resolution, no CSS layer gaps */
.depth-bg-layer,
.depth-fg-layer {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  filter: none;
  transform: none;
  opacity: 1;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  vertical-align: top;
}

.depth-bg-layer {
  position: relative;
  z-index: 1;
}

/* Foreground cliff/cave — overlaps waterfall edges (matches merge_hero_layers.py) */
.depth-fg-layer {
  position: absolute;
  left: 0;
  top: 77.02%;
  z-index: 9;
}

/*
 * Waterfall — single animated PNG, natural aspect ratio, full height visible.
 * Asset: 147×562px. Aligned to surface pool → ravine (composite analysis).
 */
.depth-fall-layer {
  position: absolute;
  left: 56%;
  top: 56.8%;
  transform: translateX(-50%);
  width: 7.2%;
  height: auto;
  max-height: none;
  z-index: 8;
  pointer-events: none;
  image-rendering: auto;
}

.depth-copy-stack {
  position: absolute;
  top: clamp(110px, calc(var(--nav-h) + var(--announce-h) + 3vh), 180px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 40px));
  text-align: center;
  z-index: 12;
  pointer-events: none;
  line-height: normal;
}

.depth-copy-stack a {
  pointer-events: auto;
}

.depth-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 3px rgba(43, 25, 58, 0.4);
}

.depth-title {
  font-family: "Minecraft", var(--font-display), sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 3.25rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-shadow:
    0.08em 0 #5a5a5a,
    0.08em 0.08em #5a5a5a,
    0 0.08em #5a5a5a,
    0.16em 0.16em 0 #3a3a3a;
}

.depth-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.depth-mote {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #f4a8c8;
  opacity: 0.28;
  border-radius: 1px;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { transform: translateY(-10px); opacity: 0; }
  10%  { opacity: 0.28; }
  100% { transform: translateY(50vh); opacity: 0; }
}

@media (max-width: 768px) {
  .depth-fall-layer {
    left: 55.5%;
    top: 56.2%;
    width: 9%;
  }

  body.page-night .depth-fall-layer {
    top: calc(43.8% - 1mm);
    left: 55.5%;
    width: 9%;
  }

  .depth-title {
    font-size: clamp(1.25rem, 6.5vw, 1.85rem);
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-mote { display: none; }
}

/* Content sections below hero */
.bedrock-intro {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .bedrock-intro { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

.bedrock-intro-img {
  width: 100%;
  border: 2px solid var(--mc-border);
  display: block;
  border-radius: 0;
}

.bedrock-intro-panel {
  padding: 2rem;
}

@media (min-width: 768px) {
  .bedrock-intro-panel { padding: 2.5rem; }
}

.use-block-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .use-block-grid { grid-template-columns: repeat(3, 1fr); }
}

.use-block {
  background: #1c1e1b;
  border: 2px solid #333830;
  padding: 1.25rem;
  min-height: 100px;
}

.use-block.span-2 { grid-column: span 2; }

.final-cta {
  background: linear-gradient(180deg, #1a1c19 0%, #121411 100%);
  border-top: 2px solid var(--mc-border);
  text-align: center;
  padding: 5rem 1rem;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
}
