
/* =========================================================
   QUETTALITH — ENTER PAGE
   ========================================================= */


/* ===== PAGE ===== */

.enter-page {
  overflow-x: hidden;
}


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

.enter-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;

  height: 145px;

  background: var(--bg);
}


/* ===== BACK ===== */

.enter-back {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);

  display: inline-block;

  color: var(--muted);

  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 500;

  letter-spacing: 0.28em;
  text-decoration: none;

  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
}

.enter-back:hover {
  color: var(--text);
  text-shadow: 0 0 18px var(--glow);
}


/* ===== LOGO ===== */

.enter-logo {
  position: absolute;

  left: max(
    6vw,
    calc((100vw - 880px) / 2 + 6vw)
  );

  top: 50%;
  transform: translateY(-50%);

  width: clamp(250px, 24vw, 380px);

  aspect-ratio: 1298 / 419;

  pointer-events: none;
}

.enter-graphic {
  position: absolute;
  inset: 0;

  transform: scale(0.5);
  transform-origin: left center;
}

.enter-wordmark-piece {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.enter-piece {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  pointer-events: none;
  user-select: none;
}


/* ===== CONTENT ===== */

.enter-content {
  width: 100%;
  max-width: 880px;

  margin: 0 auto;

  padding:
    220px
    6vw
    12vh;
}

.enter-block {
  margin-bottom: 64px;
}

.enter-block:last-child {
  margin-bottom: 0;
}


/* ===== TYPOGRAPHY ===== */

.enter-line {
  margin: 0;
  padding: 0;

  color: var(--muted);

  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;

  line-height: 1.65;
  letter-spacing: 0.025em;

  opacity: 0;

  transform: translateY(8px);

  animation:
    enter-fade-in
    0.8s
    cubic-bezier(.16,.62,.2,1)
    forwards;
}

.enter-headline {
  color: var(--text);

  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;

  line-height: 1.4;
  letter-spacing: 0.15em;
}

.enter-accent {
  color: var(--text);

  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;

  line-height: 1.5;
  letter-spacing: 0.12em;

  margin-bottom: 12px;
}

.enter-line sup {
  position: relative;
  top: -0.25em;

  font-size: 0.65em;
  letter-spacing: 0;
}


/* ===== KEY EMPHASIS ===== */

.enter-block[data-block="2"] .enter-line:first-child {
  color: var(--text);
  font-weight: 500;
}

.enter-block[data-block="5"] .enter-line:nth-child(2) {
  color: var(--text);
}

.enter-block[data-block="6"] .enter-line:nth-child(4) {
  color: var(--text);
  font-weight: 500;
}


/* ===== BLOCK SPACING ===== */

.enter-block[data-block="3"] {
  margin-top: 76px;
  margin-bottom: 76px;
}

.enter-block[data-block="6"] {
  margin-top: 76px;
  margin-bottom: 76px;
}


/* ===== DOMAIN ===== */

.enter-domain {
  color: var(--text) !important;

  font-size: clamp(19px, 1.6vw, 23px) !important;
  font-weight: 600 !important;

  line-height: 1.4 !important;
  letter-spacing: 0.16em !important;

  margin-bottom: 16px !important;
}


/* ===== CTA ===== */

.enter-cta-block {
  text-align: center;

  margin-top: 96px;
}

.enter-enquiry {
  display: inline-block;

  margin: 34px 0 20px;
  padding: 13px 22px;

  color: var(--text);

  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 500;

  line-height: 1.4;
  letter-spacing: 0.24em;

  text-decoration: none;

  border: 1px solid var(--border);
  border-radius: 0;

  opacity: 0;
  transform: translateY(8px);

  animation:
    enter-fade-in
    0.8s
    4.4s
    cubic-bezier(.16,.62,.2,1)
    forwards;

  cursor: pointer;

  transition:
    color 0.4s ease,
    border-color 0.4s ease,
    text-shadow 0.4s ease;
}

.enter-enquiry:hover {
  color: #ffffff;

  border-color: var(--border-hover);

  text-shadow: 0 0 18px var(--glow);
}


/* ===== EMAIL ===== */

.enter-email {
  color: var(--faint) !important;

  font-size: clamp(11px, 0.95vw, 13px) !important;
  font-weight: 400 !important;

  line-height: 1.4 !important;
  letter-spacing: 0.08em !important;
}


/* ===== X PROFILE ===== */

.enter-x {
  display: inline-block;

  margin-top: 28px;

  color: var(--faint);

  font-size: 10px;
  font-weight: 400;

  line-height: 1.4;
  letter-spacing: 0.08em;

  text-decoration: none;

  opacity: 0;

  transform: translateY(8px);

  animation:
    enter-fade-in
    0.8s
    4.7s
    cubic-bezier(.16,.62,.2,1)
    forwards;

  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
}

.enter-x:hover {
  color: var(--text);

  text-decoration: none;

  text-shadow: 0 0 14px var(--glow);
}


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

.enter-footer {
  text-align: center;

  padding:
    0
    6vw
    5vh;

  color: var(--faint);

  font-size: 8px;
  font-weight: 500;

  line-height: 1.4;
  letter-spacing: 0.22em;

  opacity: 0;

  animation:
    enter-fade-in
    0.8s
    4.9s
    cubic-bezier(.16,.62,.2,1)
    forwards;
}


/* ===== ANIMATION ===== */

@keyframes enter-fade-in {

  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


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

.enter-block[data-block="1"] .enter-line {
  animation-delay: 0.2s;
}


/* BLOCK 2 */

.enter-block[data-block="2"] .enter-line:nth-child(1) {
  animation-delay: 0.5s;
}

.enter-block[data-block="2"] .enter-line:nth-child(2) {
  animation-delay: 0.65s;
}

.enter-block[data-block="2"] .enter-line:nth-child(3) {
  animation-delay: 0.8s;
}

.enter-block[data-block="2"] .enter-line:nth-child(4) {
  animation-delay: 0.95s;
}


/* BLOCK 3 */

.enter-block[data-block="3"] .enter-line:nth-child(1) {
  animation-delay: 1.25s;
}

.enter-block[data-block="3"] .enter-line:nth-child(2) {
  animation-delay: 1.4s;
}

.enter-block[data-block="3"] .enter-line:nth-child(3) {
  animation-delay: 1.55s;
}


/* BLOCK 4 */

.enter-block[data-block="4"] .enter-line {
  animation-delay: 2.15s;
}


/* BLOCK 5 */

.enter-block[data-block="5"] .enter-line:nth-child(1) {
  animation-delay: 2.45s;
}

.enter-block[data-block="5"] .enter-line:nth-child(2) {
  animation-delay: 2.6s;
}

.enter-block[data-block="5"] .enter-line:nth-child(3) {
  animation-delay: 2.75s;
}


/* BLOCK 6 */

.enter-block[data-block="6"] .enter-line:nth-child(1) {
  animation-delay: 3.2s;
}

.enter-block[data-block="6"] .enter-line:nth-child(2) {
  animation-delay: 3.35s;
}

.enter-block[data-block="6"] .enter-line:nth-child(3) {
  animation-delay: 3.5s;
}

.enter-block[data-block="6"] .enter-line:nth-child(4) {
  animation-delay: 3.65s;
}

.enter-block[data-block="6"] .enter-line:nth-child(5) {
  animation-delay: 3.8s;
}


/* BLOCK 7 */

.enter-block[data-block="7"] .enter-line:first-child {
  animation-delay: 4.1s;
}

.enter-block[data-block="7"] .enter-email {
  animation-delay: 4.55s;
}


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

@media screen and (max-width: 768px) {

  .enter-header {
    height: 116px;
  }

  .enter-back {
    left: 6vw;

    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .enter-logo {
    left: 32vw;

    width: clamp(150px, 42vw, 240px);
  }

  .enter-content {
    padding:
      178px
      6vw
      10vh;
  }

  .enter-block {
    margin-bottom: 52px;
  }

  .enter-block[data-block="3"],
  .enter-block[data-block="6"] {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .enter-line {
    font-size: 15px;
    line-height: 1.65;
  }

  .enter-headline {
    font-size: 18px;
    letter-spacing: 0.13em;
  }

  .enter-accent {
    font-size: 16px;
    letter-spacing: 0.11em;
  }

  .enter-domain {
    font-size: 18px !important;
    letter-spacing: 0.14em !important;
  }

  .enter-cta-block {
    margin-top: 72px;
  }

  .enter-enquiry {
    margin-top: 32px;

    padding: 12px 20px;

    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .enter-x {
    margin-top: 26px;

    font-size: 10px;
  }

}


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

@media screen and (max-width: 480px) {

  .enter-header {
    height: 100px;
  }

  .enter-back {
    left: 5vw;

    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .enter-logo {
    left: 30vw;

    width: clamp(120px, 46vw, 200px);
  }

  .enter-content {
    padding:
      156px
      5vw
      9vh;
  }

  .enter-line {
    font-size: 14px;
    line-height: 1.65;
  }

  .enter-headline {
    font-size: 17px;
    letter-spacing: 0.11em;
  }

  .enter-accent {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .enter-domain {
    font-size: 16px !important;
    letter-spacing: 0.12em !important;
  }

  .enter-block {
    margin-bottom: 44px;
  }

  .enter-block[data-block="3"],
  .enter-block[data-block="6"] {
    margin-top: 52px;
    margin-bottom: 52px;
  }

  .enter-cta-block {
    margin-top: 60px;
  }

  .enter-enquiry {
    margin-top: 30px;

    padding: 11px 18px;

    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .enter-x {
    margin-top: 24px;

    font-size: 9px;
  }

  .enter-footer {
    font-size: 7px;
    letter-spacing: 0.18em;
  }

}