:root{
  --stage-height:420px;
  --story-offset:460px;
}

/* ===============================
   RESET
================================ */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Garamond, Georgia, serif;
  background:#fdfbf6;
  overflow-x:hidden;
}


/* ===============================
   FIXED STAGE BACKGROUND
================================ */

#stage-bg{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:var(--stage-height);
  background:url("../image/voiceprep9.png") center top / cover no-repeat;
  z-index:10;
  pointer-events:none;
}


/* ===============================
   STAGE CONTAINER
================================ */

#stage{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:var(--stage-height);
  z-index:20;
}


/* ===============================
   TOP SCROLL BUTTONS
================================ */

.top-buttons{
  position:absolute;
  top:30px;
  width:100%;
  display:flex;
  justify-content:center;
  gap:24px;
}


/* ===============================
   RECORDER CONTROLS
================================ */

.control-buttons{
  position:absolute;
  bottom:80px;
  width:100%;
  display:flex;
  justify-content:center;
  gap:16px;
}


/* ===============================
   SCROLL ITEM + LABEL
================================ */

.scroll-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.scroll-text{
  margin-top:6px;
  font-size:17px;
  letter-spacing:0.04em;
  color:#4a463f;
  text-align:center;
}

/* Hide labels when English (scroll images already contain text) */

html[lang="en"] .scroll-text{
  display:none;
}


/* ===============================
   LANGUAGE DROPDOWN
================================ */

.lang-switcher{
  position:fixed;
  top:16px;
  right:18px;
  z-index:9999;
}

.lang-switcher select{
  font-family:Garamond, Georgia, serif;
  font-size:14px;
  padding:4px 10px;

  background:rgba(255,255,255,0.92);
  border:1px solid #c9c2b8;
  border-radius:6px;

  color:#4a463f;
  cursor:pointer;

  box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.lang-switcher select:focus{
  outline:none;
  border-color:#8a9a8a;
}


/* ===============================
   SCROLL BUTTON IMAGES
================================ */

.top-buttons img,
.control-buttons img{
  width:110px;
  height:auto;
  cursor:pointer;
  transition:transform .25s ease, filter .25s ease;
}

.top-buttons img:hover,
.control-buttons img:hover{
  transform:translateY(-2px) scale(1.04);
  filter:
    drop-shadow(0 0 8px rgba(212,175,55,.7))
    drop-shadow(0 0 14px rgba(255,220,120,.5));
}


/* ===============================
   STORY CONTENT AREA
================================ */

#story-scroll{
  position:relative;
  z-index:1;
  padding-top:var(--story-offset);
  padding-left:4rem;
  padding-right:4rem;
  padding-bottom:6rem;
}


/* ===============================
   SECTION TITLE
================================ */

.set-label{
  text-align:center;
  font-size:36px;
  letter-spacing:0.1em;
  margin:5rem 0 3rem;
  color:#7a8a74;
  font-style:italic;
}

.prep-mark{
  font-size:0.6em;
  vertical-align:super;
  margin-left:4px;
}


/* ===============================
   STORY SECTIONS
================================ */

.story-set{
  margin-bottom:6rem;
}

.story-set:first-of-type{
  margin-top:-40px;
  pointer-events:none;
}

.story-set:first-of-type .story-columns{
  pointer-events:auto;
}


/* ===============================
   STORY GRID
================================ */

.story-columns{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4rem;
  justify-items:center;
}


/* ===============================
   STORY TEXT
================================ */

.story-column h3{
  font-size:26px;
  margin-bottom:1.4rem;
  text-align:center;
}

.story-column p{
  font-size:22px;
  line-height:2.3;
  max-width:30ch;
  margin:0 auto 1.8rem;
  text-align:center;
}


/* ===============================
   TABLET
================================ */

@media (max-width:1024px){

  .story-columns{
    grid-template-columns:repeat(2,1fr);
  }

}


/* ===============================
   PHONE
================================ */

@media (max-width:600px){

  .story-columns{
    grid-template-columns:1fr;
  }

  .top-buttons img{
    width:100px;
  }

  .control-buttons{
    gap:8px;
  }

  .control-buttons img{
    width:80px;
  }

}