/* ====== Section2: Layout =================================================== */
.canvas-wrap {
  position: relative;
  width: 100%;
  height: 100vh;            /* fill one viewport */
  background: #0b0d12;      /* match scene bg */
  overflow: hidden;
}

#c {
  display: block;
  width: 100%;
  height: 100%;
  /* z-index not needed unless positioned */
}

/* ====== HUD (overlay for Section2 only) =================================== */
#section2 .hud {
  position: absolute;
  left: 16px;
  right: 16px;              /* small breathing room */
  bottom: 16px;
  z-index: 10;
  color: #eaeaea;
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: rgba(0,0,0,.35);
  padding: 10px 12px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  pointer-events: auto;
}

#section2 #hint{
  opacity: .9;
  margin-top: 6px;
}

/* buttons inside HUD */
#section2 .hud .next-sec,
#section2 .hud .s2-btn{
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #fff;
  background: rgba(255,255,255,.08);
  color: #eaeaea;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
#section2 .hud .next-sec:hover,
#section2 .hud .s2-btn:hover{
  background: #fff;
  color: #000;
}

/* optional list styling if you use <ul class="s2-help"> */
#section2 .hud .s2-help{
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  opacity: .9;
}
#section2 .hud .s2-help li{ margin: 0; }

/* ====== Scroll snap (unchanged, but de-duped) ============================= */
html { scroll-behavior: smooth; }

body { scroll-snap-type: y mandatory; }

.clickable-section,
#section2.canvas-wrap,
#section1, #section3, #section4, #contact {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* ensure every section has enough height for snap feel */
#section1, #section2, #section3, #section4, #contact {
  min-height: 100vh;
}
