:root {
  --gold: #ffca28;
  --gold-dark: #b38f00;
  --silver: #c0c0c0;
  --skyblue: #87ceeb;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: sans-serif; }

/* Landing overlay */
#landing {
  position: fixed;
  inset: 0;
  background-color: var(--skyblue);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  perspective: 1200px;
}

/* Staircase */
.staircase {
  position: relative;
  width: 60%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  margin-bottom: 50px;
  z-index: 900;
}
.step {
  height: 50px;
  background-color: var(--silver);
  margin: 5px 0; /* overlap for depth */
  border-radius: 5px;
  position: relative;
  z-index: 0;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.3),
    inset 0 -4px 6px rgba(0,0,0,0.2);
}
/* Steps width decreasing for perspective and layering */
.step:nth-child(1) { width: 100%; z-index:5; }
.step:nth-child(2) { width: 85%; z-index:4; }
.step:nth-child(3) { width: 70%; z-index:3; }
.step:nth-child(4) { width: 55%; z-index:2; }
.step:nth-child(5) { width: 40%; z-index:1; }

/* Gate Panels */
.gate {
  position: absolute;
  top: 0px;
  bottom: 0px;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1000;
margin: 0;
overflow: hidden;
}
.gate-left, .gate-right {
  flex: 1;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--gold-dark) 100%);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 1s ease;
}
.gate-left { margin-right: 2px; }
.gate-right { margin-left: 2px; }

/* Landing content */
.landing-content {
  position: absolute;
 top: 50%; 
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1100;
  text-align: center;
}
.landing-title {
  margin-top: 200px; /* position at top of gate */
  font-size: clamp(24px, 5vw, 48px);
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  pointer-events: auto;
}

/* Button wrapper to center Enter button independently */
.button-wrapper {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.enter-btn {
  padding: 14px 32px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 -3px 5px rgba(0,0,0,0.1);
}
.enter-btn:active {
  transform: translateY(1px);
}

/* Fade Landing */
#landing.fadeout {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

/* Home page */
.site-hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.site-visible {
  visibility: visible;
  opacity: 1;
}
/* site (hidden until landing removed) */
.site-hidden{ visibility:hidden; opacity:0; transform:translateY(6px); transition:opacity 0.6s ease, transform 0.6s ease, visibility 0.6s; }
.site-visible{ visibility:visible; opacity:1; transform:none; }

/* site header */
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 32px;
  background:transparent;
}
.logo{ font-weight:700; font-size:20px; color:var(--gold-400) }
.site-nav a{
  margin-left:18px;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
}
.site-main{ padding:40px 32px; max-width:1100px; margin:0 auto; }

.hero{
  background:linear-gradient(180deg, rgba(255,188,0,0.08), rgba(255,188,0,0.02));
  padding:36px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(43,43,43,0.06);
}
.hero h2{ margin:0 0 8px 0; font-size:28px }
.content-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin-top:28px;
}
.content-grid article{
  background:white;
  padding:20px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(43,43,43,0.05);
}
.site-footer{
  padding:28px;
  text-align:center;
  color:#6b6b6b;
}

/* responsive tweaks */
@media (max-width:720px){
  .enter-btn{ padding:14px 28px; font-size:18px }
  .landing-title{ font-size:22px }
  .site-header{ padding:12px 18px }
}

