* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #f3e3bd;
  background:
    radial-gradient(circle at 50% 15%, rgba(214, 173, 85, 0.18), transparent 24rem),
    linear-gradient(135deg, #10271f 0%, #1f5142 45%, #6f342d 100%);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.35) 100%);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 115px
    );
  opacity: 0.5;
}

/* Full-screen layout */

.landing {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

/* Header text */

.intro {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1rem 1.15rem;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.55);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.64) 58%,
      rgba(0, 0, 0, 0) 100%
    );
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: #d6ad55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  font-family: "ZCOOL XiaoWei", Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.intro-copy {
  width: 100%;
  max-width: 620px;
  margin: 0.7rem auto 0;
  color: rgba(255, 250, 231, 0.82);
  font-size: 1rem;
}

/* Panels */

.scroll-panels {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  width: 100vw;
  height: auto;
  min-height: 0;
  margin: 0;
  gap: 0;
}

.scroll-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  padding-bottom: 4rem;
  color: inherit;
  border: 0;
  border-right: 1px solid rgba(255, 250, 231, 0.16);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -8rem 8rem rgba(0, 0, 0, 0.22);
  transition:
    flex 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 520ms ease,
    opacity 520ms ease,
    border-color 520ms ease;
}

.scroll-panel:last-child {
  border-right: 0;
}

.scroll-panel:focus-visible {
  outline: 3px solid #ffd76a;
  outline-offset: -8px;
}

/* Placeholder visual moods.
   Later, replace these backgrounds with image URLs. */

.explore-panel {
  background-image:
    linear-gradient(180deg, rgba(14, 36, 29, 0.08), rgba(9, 22, 18, 0.72)),
    url("images/sam-power-6aP9EGsYE3s-unsplash.jpg");
  background-position: center center, 38% center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #10271f;
}

.learn-panel {
  background-image:
    linear-gradient(180deg, rgba(14, 36, 29, 0.1), rgba(9, 22, 18, 0.74)),
    url("images/akash-rai-D2V9CySD0N4-unsplash.jpg");
  background-position: center center, 52% center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #10271f;
}

.lorewalker-panel {
  background-image:
    linear-gradient(180deg, rgba(14, 36, 29, 0.12), rgba(9, 22, 18, 0.76)),
    url("images/ricky-lk-4d5Ar3V2wjE-unsplash.jpg");
  background-position: center center, 34% center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #10271f;
}

/* Scroll texture overlay */

.scroll-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  padding-bottom: 7rem;
  color: inherit;
  border: 0;
  border-right: 1px solid rgba(255, 250, 231, 0.16);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -8rem 8rem rgba(0, 0, 0, 0.22);
  transition:
    flex 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 520ms ease,
    opacity 520ms ease,
    border-color 520ms ease;
}

.scroll-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.34) 100%);
}

.panel-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.78) 100%);
  transition: background 520ms ease;
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  opacity: 0;
  transform: translateY(1rem);
  transition:
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 320ms ease;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.48rem;
  color: #24160d;
  background: rgba(243, 227, 189, 0.88);
  border: 1px solid rgba(214, 173, 85, 0.78);
  border-radius: 0.22rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
}

.panel-title {
  display: block;
  max-width: 36rem;
  margin: 0;
  font-family: "ZCOOL XiaoWei", Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: rgba(255, 250, 231, 0.98);
  text-shadow:
    0 0.35rem 1rem rgba(0, 0, 0, 0.85),
    0 0 1.4rem rgba(0, 0, 0, 0.55);
  transition:
    max-width 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    font-size 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}


.panel-copy {
  display: block;
  max-width: 34rem;
  margin-top: 1rem;
  margin-bottom: 0;
  color: rgba(255, 250, 231, 0.9);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.6;
  opacity: 1;
  transform: none;
  text-shadow:
    0 0.35rem 1rem rgba(0, 0, 0, 0.85),
    0 0 1.2rem rgba(0, 0, 0, 0.55);
}

/* Hover/focus expansion */

.scroll-panels:hover .scroll-panel,
.scroll-panels:focus-within .scroll-panel {
  opacity: 0.78;
  filter: saturate(0.78) brightness(0.72);
}

.scroll-panels:hover .scroll-panel:hover,
.scroll-panels:focus-within .scroll-panel:focus-visible {
  flex: 5.5 1 0;
  opacity: 1;
  filter: saturate(1.04) brightness(1);
  transform: none;
  border-color: rgba(255, 215, 106, 0.72);
}

.scroll-panel:hover .panel-content,
.scroll-panel:focus-visible .panel-content {
  opacity: 1;
  transform: translateY(0);
}

.scroll-panel:hover .panel-title,
.scroll-panel:focus-visible .panel-title {
  max-width: 42rem;
  font-size: 5rem;
}

/* Footer */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 0.85rem 4% 0.75rem;
  color: rgba(255, 250, 231, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0.5rem 1.1rem rgba(0, 0, 0, 0.8);
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.64) 62%,
      rgba(0, 0, 0, 0) 100%
    );
}
.site-footer p {
  margin: 0;
}

/* Tablet and small-screen layout */

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .landing {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .intro {
    padding-top: 1.4rem;
  }

  .intro h1 {
    font-size: 3rem;
  }

  .scroll-panels {
    flex-direction: column;
    height: auto;
    min-height: 0;
    margin-bottom: 5rem;
  }

  .scroll-panel {
    min-height: 14rem;
    flex: 1 1 auto;
  }

  .scroll-panels:hover .scroll-panel,
  .scroll-panels:focus-within .scroll-panel,
  .scroll-panels:hover .scroll-panel:hover,
  .scroll-panels:focus-within .scroll-panel:focus-visible {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .panel-content {
    opacity: 1;
    transform: none;
  }

  .panel-title {
    max-width: 100%;
    font-size: 2.4rem;
  }

  .panel-copy {
    opacity: 1;
    transform: none;
  }

  .site-footer {
    position: static;
    width: 92%;
    margin: 0 auto 1rem;
  }
}

@media (max-width: 540px) {
  .intro {
    text-align: left;
  }

  .intro h1 {
    font-size: 2.6rem;
  }

  .scroll-panels {
    width: 96%;
  }

  .scroll-panel {
    border-radius: 22px;
    padding: 1.25rem;
  }

  .panel-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
