:root {
  --night: #061812;
  --forest: #0b3528;
  --emerald: #12523e;
  --moss: #7e9c73;
  --gold: #d8b45e;
  --bright-gold: #f0d485;
  --cream: #f0e6ce;
  --paper: #e8dcc0;
  --ink: #25332c;
}


/* ==================================================
   RESET
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  overflow-x: hidden;

  color: var(--ink);

  background: var(--paper);

  font-family:
    "Montserrat",
    sans-serif;
}

body.locked {
  overflow: hidden;
}

img {
  display: block;

  width: 100%;
}

a {
  color: inherit;

  text-decoration: none;
}

figure {
  margin: 0;
}

.container {
  width:
    min(
      1180px,
      calc(100% - 50px)
    );

  margin: auto;
}

h1,
h2,
h3,
.script {
  font-family:
    "Cormorant Garamond",
    serif;
}


/* ==================================================
   SWITCHER
================================================== */

.demo-switcher {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 99999;

  width: 100%;

  min-height: 38px;

  padding: 6px 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 25px;

  color: white;

  background:
    rgba(4,16,12,0.98);

  border-bottom:
    1px solid rgba(216,180,94,0.18);

  font-family:
    Arial,
    sans-serif;

  font-size: 0.72rem;
}

.demo-switcher > span {
  opacity: 0.6;
}

.demo-switcher-links {
  display: flex;

  gap: 7px;
}

.demo-switcher-links a {
  padding: 5px 11px;

  border:
    1px solid rgba(255,255,255,0.2);

  border-radius: 100px;
}

.demo-switcher-links a:hover,
.demo-switcher-links .current-demo {
  color: var(--night);

  background: var(--bright-gold);

  border-color: var(--bright-gold);
}


/* ==================================================
   HEADER
================================================== */

.fairy-header {
  position: fixed;

  top: 38px;
  left: 0;

  z-index: 1000;

  width: 100%;

  height: 88px;

  padding: 0 5vw;

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: var(--cream);

  background:
    rgba(6,24,18,0.96);

  border-bottom:
    1px solid rgba(216,180,94,0.2);

  backdrop-filter: blur(15px);

  transition: height 0.35s ease;
}

.fairy-header.scrolled {
  height: 72px;
}

.fairy-logo {
  display: flex;

  align-items: center;

  gap: 14px;
}

.fairy-logo > span {
  width: 50px;
  height: 50px;

  display: grid;

  place-items: center;

  border:
    1px solid var(--gold);

  border-radius: 50%;

  color: var(--gold);

  font-family:
    "Cormorant Garamond",
    serif;
}

.fairy-logo strong,
.fairy-logo small {
  display: block;
}

.fairy-logo small {
  margin-top: 2px;

  color: var(--gold);

  font-size: 0.54rem;

  letter-spacing: 0.24em;
}

.fairy-header nav {
  display: flex;

  gap: 30px;
}

.fairy-header nav a {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.05rem;
}

.fairy-header nav .active {
  color: var(--bright-gold);
}

.fairy-menu {
  display: none;

  position: relative;

  z-index: 50;

  border: 0;

  color: var(--cream);

  background: transparent;

  font-size: 1.4rem;
}


/* ==================================================
   HERO
================================================== */

.guardian-hero {
  position: relative;

  min-height: 850px;

  padding-top: 126px;

  overflow: hidden;

  display: grid;

  place-items: center;

  color: var(--cream);

  background: var(--night);
}

.guardian-forest,
.guardian-shade,
.guardian-stars {
  position: absolute;

  inset: 0;
}

.guardian-forest {
  background:
    url("forest-hero.jpg")
    center / cover;
}

.guardian-shade {
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(23,78,55,0.18),
      rgba(1,13,9,0.92)
    );
}

.guardian-stars {
  opacity: 0.35;

  background-image:
    radial-gradient(
      var(--bright-gold) 0.8px,
      transparent 0.8px
    );

  background-size:
    70px 70px;
}

.guardian-glow {
  position: absolute;

  top: 18%;
  left: 50%;

  width: 560px;
  height: 560px;

  border-radius: 50%;

  transform:
    translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(240,212,133,0.18),
      transparent 68%
    );
}


/* HERO CIRCLES */

.hero-circle {
  position: absolute;

  z-index: 6;

  overflow: hidden;

  border:
    7px solid rgba(216,180,94,0.35);

  border-radius: 50%;

  background: var(--forest);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.35);
}

.hero-circle img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.hero-circle figcaption {
  position: absolute;

  left: 50%;
  bottom: 15px;

  transform: translateX(-50%);

  padding: 7px 12px;

  border-radius: 100px;

  white-space: nowrap;

  color: var(--cream);

  background:
    rgba(6,24,18,0.82);

  font-family:
    "Cormorant Garamond",
    serif;

  font-weight: 600;
}

.hero-juvia {
  top: 160px;
  right: 4%;

  width: 285px;
  height: 285px;
}

.hero-juvia img {
  object-position:
    46% 35%;
}

.hero-jiraiya {
  left: 4%;
  bottom: 65px;

  width: 330px;
  height: 330px;
}

.hero-jiraiya img {
  object-position:
    center 22%;
}


/* HERO TITLE */

.hero-title {
  position: relative;

  z-index: 8;

  width:
    min(
      700px,
      calc(100% - 40px)
    );

  text-align: center;
}

.hero-title > span {
  color: var(--gold);

  font-size: 0.62rem;

  letter-spacing: 0.32em;
}

.script {
  margin: 14px 0 0;

  color: var(--bright-gold);

  font-size: 1.4rem;

  font-style: italic;
}

.hero-title h1 {
  margin: 0;

  font-size:
    clamp(
      5.4rem,
      11vw,
      10rem
    );

  line-height: 0.72;
}

.hero-title h1 em {
  display: block;

  color: var(--bright-gold);

  font-weight: 500;
}

.ornament {
  margin: 35px 0 18px;

  color: var(--gold);
}

.hero-description {
  color: rgba(240,230,206,0.7);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.35rem;
}


/* ==================================================
   SCROLL INTRO
================================================== */

.scroll-intro {
  padding: 120px 25px;

  background: var(--paper);
}

.scroll-frame {
  position: relative;

  width:
    min(
      860px,
      100%
    );

  margin: auto;

  padding: 70px 75px;

  border:
    1px solid rgba(74,80,58,0.34);

  text-align: center;

  background: #efe5ca;

  box-shadow:
    inset 0 0 0 8px #efe5ca,
    inset 0 0 0 9px rgba(74,80,58,0.2);
}

.corner {
  position: absolute;

  color: var(--gold);

  font-size: 1.8rem;
}

.corner-one {
  left: 18px;
  top: 14px;
}

.corner-two {
  right: 18px;
  top: 14px;

  transform: scaleX(-1);
}

.corner-three {
  left: 18px;
  bottom: 14px;

  transform: rotate(180deg);
}

.corner-four {
  right: 18px;
  bottom: 14px;

  transform:
    rotate(180deg)
    scaleX(-1);
}

.small-title {
  color: var(--emerald);

  font-size: 0.62rem;

  letter-spacing: 0.25em;
}

.scroll-frame h2 {
  margin: 15px 0 30px;

  color: var(--forest);

  font-size:
    clamp(
      3.4rem,
      7vw,
      5.7rem
    );

  line-height: 0.95;
}

.scroll-frame h2 em {
  display: block;

  color: var(--moss);

  font-weight: 500;
}

.scroll-frame > p:not(.small-title) {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.3rem;

  line-height: 1.7;
}


/* ==================================================
   ROYAL SECTIONS
================================================== */

.royal-section {
  padding: 125px 0;
}

.king-section {
  color: var(--cream);

  background:
    radial-gradient(
      circle at 70% 40%,
      #174735,
      var(--night)
    );
}

.queen-section {
  background: #e8dcc0;
}

.chapter-label {
  margin-bottom: 65px;

  color: var(--gold);

  text-align: center;

  font-size: 0.63rem;

  letter-spacing: 0.35em;
}

.queen-section .chapter-label {
  color: var(--emerald);
}

.royal-layout {
  display: grid;

  grid-template-columns:
    1fr 0.9fr;

  align-items: center;

  gap: 100px;
}

.royal-layout.reverse {
  grid-template-columns:
    0.9fr 1fr;
}

.reverse .royal-portrait {
  order: 2;
}

.reverse .royal-copy {
  order: 1;
}


/* ARCH */

.royal-portrait {
  position: relative;

  height: 660px;
}

.portrait-halo {
  position: absolute;

  left: 50%;
  top: 10%;

  width: 440px;
  height: 440px;

  border-radius: 50%;

  transform:
    translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(216,180,94,0.22),
      transparent 70%
    );
}

.queen-halo {
  background:
    radial-gradient(
      circle,
      rgba(18,82,62,0.16),
      transparent 70%
    );
}

.portrait-frame {
  position: absolute;

  inset: 0 8%;

  overflow: hidden;

  border:
    2px solid rgba(216,180,94,0.42);

  border-radius:
    50% 50% 14px 14px;

  background: var(--forest);
}

.queen-frame {
  border-color:
    rgba(18,82,62,0.3);

  background: #b6c9ad;
}

.portrait-ring {
  position: absolute;

  z-index: 4;

  inset: 8px;

  border:
    1px solid rgba(216,180,94,0.3);

  border-radius: inherit;

  pointer-events: none;
}

.queen-frame .portrait-ring {
  border-color:
    rgba(18,82,62,0.3);
}

.portrait-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1.035);
}

.king-section
.portrait-frame img {
  object-position:
    center 18%;
}

.queen-section
.portrait-frame img {
  object-position:
    47% 36%;
}

.crown {
  position: absolute;

  z-index: 5;

  top: 15px;
  left: 50%;

  transform:
    translateX(-50%);

  color: var(--gold);

  font-size: 2rem;
}


/* COPY */

.royal-small {
  color: var(--gold);

  font-size: 0.62rem;

  letter-spacing: 0.28em;
}

.queen-section .royal-small {
  color: var(--emerald);
}

.royal-copy h2 {
  margin: 8px 0;

  font-size:
    clamp(
      4.2rem,
      8vw,
      7rem
    );

  line-height: 0.9;
}

.king-section
.royal-copy h2 {
  color: var(--cream);
}

.queen-section
.royal-copy h2 {
  color: var(--forest);
}

.royal-divider {
  margin: 17px 0;

  color: var(--gold);
}

.royal-lead {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.5rem;

  font-style: italic;
}

.royal-copy
> p:not(.royal-small):not(.royal-lead) {
  line-height: 1.8;
}

.king-section
.royal-copy > p:not(.royal-small) {
  color: rgba(240,230,206,0.68);
}

.poly-seal {
  width: fit-content;

  margin: 15px 0 25px;

  padding: 9px 16px;

  border:
    1px solid rgba(18,82,62,0.3);

  border-radius: 100px;

  color: var(--forest);

  font-size: 0.67rem;

  font-weight: 600;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.poly-seal span {
  color: var(--gold);
}

.royal-details {
  margin-top: 35px;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}

.royal-details div {
  padding: 17px;

  border:
    1px solid rgba(216,180,94,0.22);
}

.queen-section
.royal-details div {
  border-color:
    rgba(18,82,62,0.17);
}

.royal-details span,
.royal-details strong {
  display: block;
}

.royal-details span {
  margin-bottom: 5px;

  opacity: 0.65;

  font-size: 0.58rem;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.royal-details strong {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.15rem;
}


/* ==================================================
   INTERLUDE
================================================== */

.interlude {
  position: relative;

  min-height: 530px;

  display: grid;

  place-items: center;

  overflow: hidden;

  color: var(--cream);
}

.interlude-photo,
.interlude-shade {
  position: absolute;

  inset: 0;
}

.interlude-photo {
  background:
    url("forest-life.jpg")
    center / cover;
}

.interlude-shade {
  background:
    rgba(3,22,16,0.72);
}

.interlude-copy {
  position: relative;

  z-index: 3;

  width:
    min(
      800px,
      calc(100% - 40px)
    );

  text-align: center;
}

.interlude-copy span {
  color: var(--gold);

  font-size: 2rem;
}

.interlude-copy h2 {
  margin: 18px 0 0;

  font-size:
    clamp(
      3rem,
      7vw,
      6rem
    );

  line-height: 0.95;
}


/* ==================================================
   FUTURE GUARDIANS
================================================== */

.future-guardians {
  padding: 125px 0;

  background: #efe5ca;
}

.future-heading {
  max-width: 850px;

  margin: auto;

  text-align: center;
}

.future-heading > span {
  color: var(--emerald);

  font-size: 0.62rem;

  letter-spacing: 0.3em;
}

.future-heading h2 {
  margin: 7px 0 0;

  color: var(--forest);

  font-size:
    clamp(
      3.6rem,
      8vw,
      6.4rem
    );

  line-height: 0.9;
}

.future-heading h2 em {
  display: block;

  color: var(--moss);

  font-weight: 500;
}

.empty-thrones {
  margin-top: 75px;

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 20px;

  align-items: center;
}

.empty-card {
  min-height: 360px;

  padding: 40px 30px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  border:
    1px solid rgba(68,75,54,0.22);

  text-align: center;

  background:
    rgba(255,255,255,0.18);
}

.center-card {
  min-height: 420px;

  border-color: var(--gold);

  background:
    rgba(216,180,94,0.08);
}

.empty-symbol {
  margin-bottom: 20px;

  color: var(--gold);

  font-size: 2.3rem;
}

.empty-card h3 {
  margin: 0 0 10px;

  color: var(--forest);

  font-size: 2rem;
}

.empty-card p {
  color: #6c6c58;
}


/* ==================================================
   FUTURE LITTER
================================================== */

.future-litter {
  position: relative;

  min-height: 700px;

  display: flex;

  align-items: center;

  overflow: hidden;

  color: var(--cream);
}

.future-litter-forest,
.future-litter-shade {
  position: absolute;

  inset: 0;
}

.future-litter-forest {
  background:
    url("country-life.jpg")
    center / cover;
}

.future-litter-shade {
  background:
    linear-gradient(
      90deg,
      rgba(3,22,16,0.94),
      rgba(3,22,16,0.7) 60%,
      rgba(3,22,16,0.35)
    );
}

.future-litter-copy {
  position: relative;

  z-index: 3;

  width:
    min(
      1100px,
      calc(100% - 50px)
    );

  margin: auto;
}

.future-litter-copy > * {
  max-width: 650px;
}

.chapter-number {
  color: var(--gold);

  font-size: 0.61rem;

  letter-spacing: 0.32em;
}

.future-litter-copy h2 {
  margin: 10px 0 28px;

  font-size:
    clamp(
      4rem,
      8vw,
      7rem
    );

  line-height: 0.87;
}

.future-litter-copy h2 em {
  display: block;

  color: var(--bright-gold);

  font-weight: 500;
}

.future-litter-copy
> p:not(.script) {
  color: rgba(240,230,206,0.7);

  line-height: 1.8;
}

.future-litter-copy a {
  margin-top: 18px;

  padding: 14px 25px;

  display: inline-flex;

  border:
    1px solid var(--gold);

  color: var(--bright-gold);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.1rem;
}


/* ==================================================
   FOOTER
================================================== */

.fairy-footer {
  padding: 70px 25px 30px;

  text-align: center;

  color: rgba(240,230,206,0.64);

  background: var(--night);
}

.footer-symbol {
  color: var(--gold);

  font-size: 2rem;
}

.fairy-footer h3 {
  margin: 7px 0;

  color: var(--cream);

  font-size: 2.7rem;
}

.fairy-footer nav {
  margin: 30px 0 45px;
}

.fairy-footer nav a {
  margin: 0 12px;
}

.fairy-footer small a {
  color: var(--gold);
}


/* ==================================================
   REVEAL
================================================== */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition: 0.9s;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 950px) {

  .fairy-header nav {
    position: fixed;

    top: 0;
    right: -100%;

    width:
      min(
        380px,
        88vw
      );

    height: 100svh;

    padding: 120px 35px;

    flex-direction: column;

    background: var(--night);

    transition: 0.3s;
  }

  .fairy-header nav.open {
    right: 0;
  }

  .fairy-menu {
    display: block;
  }

  .hero-juvia {
    width: 220px;
    height: 220px;

    right: 2%;
  }

  .hero-jiraiya {
    width: 250px;
    height: 250px;

    left: 2%;
  }

  .royal-layout,
  .royal-layout.reverse {
    grid-template-columns: 1fr;
  }

  .reverse .royal-portrait,
  .reverse .royal-copy {
    order: initial;
  }

  .empty-thrones {
    grid-template-columns: 1fr;
  }

  .empty-card,
  .center-card {
    min-height: 280px;
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 650px) {

  .demo-switcher {
    min-height: 46px;

    padding: 6px 10px;
  }

  .demo-switcher > span {
    display: none;
  }

  .demo-switcher-links {
    width: 100%;

    justify-content: center;
  }

  .demo-switcher-links a {
    flex: 1;

    max-width: 110px;

    text-align: center;
  }

  .fairy-header {
    top: 46px;

    height: 74px;

    padding: 0 20px;
  }

  .guardian-hero {
    min-height: 840px;
  }

  .hero-title {
    margin-top: -30px;
  }

  .hero-title h1 {
    font-size: 5.2rem;
  }

  .hero-juvia {
    top: 135px;
    right: -25px;

    width: 155px;
    height: 155px;
  }

  .hero-jiraiya {
    left: -25px;
    bottom: 45px;

    width: 185px;
    height: 185px;
  }

  .hero-circle figcaption {
    display: none;
  }

  .scroll-intro,
  .royal-section,
  .future-guardians {
    padding: 80px 20px;
  }

  .scroll-frame {
    padding: 55px 28px;
  }

  .royal-portrait {
    height: 500px;
  }

  .royal-details {
    grid-template-columns: 1fr;
  }

}