@font-face {
  font-family: "Home Chinese Display";
  src: url("../fonts/ma-shan-zheng-home.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Home Latin Display";
  src: url("../fonts/cormorant-garamond-home.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #07151c;
}

body {
  min-height: 100%;
  overflow: visible;
  background: transparent;
  overscroll-behavior-y: none;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  z-index: 0;
  background: url("../images/home-landscape.jpg") center 46% / cover no-repeat;
  transform: scale(1.015);
}

body::after {
  z-index: 2;
  background: rgba(3, 12, 20, 0.26);
}

.home-shell {
  position: relative;
  z-index: 5;
  min-height: 100%;
  isolation: isolate;
}

.liquid-ether-container {
  z-index: 1;
  opacity: 0.24;
  mix-blend-mode: screen;
  filter: saturate(0.78) brightness(1.08);
}

.home-hero {
  position: relative;
  height: 190svh;
  min-height: 820px;
}

.home-hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.home-hero__stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 32px clamp(16px, 4vw, 64px);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  width: min(92vw, 1180px);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-copy--top {
  top: clamp(28px, 8svh, 92px);
}

.hero-copy--bottom {
  bottom: clamp(82px, 15svh, 148px);
}

.hero-kicker {
  display: block;
  margin-bottom: 12px;
  color: rgba(225, 241, 255, 0.72);
  font-family: "Home Latin Display", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-copy h1,
.hero-copy p {
  margin: 0;
  color: rgba(239, 249, 255, 0.96);
  letter-spacing: 0;
  text-shadow: 0 2px 26px rgba(2, 20, 32, 0.68);
}

.hero-copy h1 {
  font-family: "Home Latin Display", Georgia, serif;
  font-size: clamp(40px, 8vw, 108px);
  font-weight: 600;
  line-height: 0.9;
}

.hero-copy p {
  font-family: "Home Chinese Display", "STKaiti", "Kaiti SC", serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.08;
}

.hero-scroll-hint {
  display: block;
  width: 28px;
  height: 28px;
  margin: 18px auto 0;
  color: rgba(226, 244, 255, 0.82);
  font-size: 24px;
  line-height: 22px;
  opacity: calc(1 - var(--hero-progress, 0) * 2.2);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-media {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  top: 50%;
  left: 50%;
  width: var(--media-width, min(78vw, 320px));
  height: var(--media-height, min(48svh, 360px));
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 176px);
  overflow: hidden;
  border: 1px solid rgba(236, 248, 255, 0.48);
  border-radius: clamp(12px, 2vw, 24px);
  background: rgba(4, 19, 30, 0.14);
  box-shadow: 0 0 50px rgba(2, 18, 29, 0.36), inset 0 0 40px rgba(240, 252, 255, 0.12);
  backdrop-filter: blur(8px) saturate(125%);
  transform: translate(-50%, -50%) scale(calc(1 - var(--hero-progress, 0) * 0.015));
  transform-origin: center;
  will-change: width, height, transform;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(236, 248, 255, 0.28);
  border-radius: clamp(8px, 1.4vw, 16px);
  content: "";
  pointer-events: none;
}

.hero-media::after {
  inset: auto 22px 22px;
  height: 1px;
  border: 0;
  background: rgba(236, 248, 255, 0.42);
}

.hero-media__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(239, 250, 255, 0.86);
  text-align: center;
}

.hero-media__mark {
  color: rgba(248, 253, 255, 0.92);
  font-family: "Home Latin Display", Georgia, serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(154, 225, 255, 0.5);
}

.hero-media__line {
  display: block;
  width: clamp(56px, 10vw, 120px);
  height: 1px;
  background: rgba(231, 247, 255, 0.72);
}

.hero-media__meta {
  color: rgba(220, 242, 255, 0.68);
  font-family: "Home Latin Display", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.login-btn {
  position: absolute;
  z-index: 4;
  bottom: clamp(26px, 5svh, 54px);
  left: 50%;
  min-width: 164px;
  padding: 12px 22px;
  color: #effaff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(4, 20, 32, 0.3);
  border: 1px solid rgba(229, 246, 255, 0.62);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(2, 24, 38, 0.32);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: calc((var(--hero-progress, 0) - 0.72) * 3.6);
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
}

.login-btn.show,
.login-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
}

.login-btn:hover {
  box-shadow: 0 0 32px rgba(176, 231, 255, 0.42);
}

.home-after {
  min-height: 70svh;
  padding: clamp(72px, 12svh, 144px) 24px;
  border-top: 1px solid rgba(225, 244, 255, 0.24);
  background: rgba(4, 18, 29, 0.3);
  backdrop-filter: blur(14px) saturate(120%);
}

.home-after__inner {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.home-after__eyebrow {
  margin: 0 0 16px;
  color: rgba(221, 241, 255, 0.66);
  font-family: "Home Latin Display", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-after h2 {
  margin: 0;
  color: rgba(241, 251, 255, 0.94);
  font-family: "Home Chinese Display", "STKaiti", "Kaiti SC", serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.12;
}

.home-after h2 span {
  display: block;
}

.home-after h2 span + span {
  margin-top: 0.08em;
}

.home-after__copy {
  max-width: 500px;
  margin: 22px auto 28px;
  color: rgba(220, 241, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.home-after__button {
  padding: 12px 22px;
  color: rgba(239, 250, 255, 0.94);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(4, 20, 32, 0.26);
  border: 1px solid rgba(225, 245, 255, 0.48);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.home-after__button:hover,
.home-after__button:focus-visible {
  background: rgba(224, 246, 255, 0.18);
  border-color: rgba(238, 251, 255, 0.86);
}

.home-shell > .site-footer {
  position: relative;
  z-index: 5;
  padding: 0 20px 24px;
}

.home-shell > .site-footer a {
  color: rgba(224, 243, 255, 0.68);
}

@media (max-width: 767px) {
  .home-hero {
    height: 168svh;
    min-height: 760px;
  }

  .hero-copy--top {
    top: 28px;
  }

  .hero-copy--bottom {
    bottom: 92px;
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 11vw, 54px);
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-media {
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 190px);
    border-radius: 14px;
  }

  .hero-media__meta {
    font-size: 12px;
    letter-spacing: 0;
  }

  .login-btn {
    bottom: 26px;
  }

  .home-after {
    min-height: 66svh;
    padding-inline: 20px;
  }

  .home-after h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .home-shell > .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .home-shell > .site-footer a {
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-shell > .site-footer .divider {
    display: none;
  }
}

@media (max-height: 599px) {
  .home-hero {
    height: 190svh;
    min-height: 640px;
  }

  .hero-copy--top {
    top: 18px;
  }

  .hero-copy--bottom {
    bottom: 62px;
  }

  .hero-kicker {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(25px, 7vw, 44px);
  }

  .hero-copy p {
    font-size: clamp(18px, 4.5vw, 25px);
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-media {
    max-height: calc(100svh - 142px);
  }

  .login-btn {
    bottom: 14px;
    padding-block: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .login-btn,
  .hero-scroll-hint,
  .home-after__button {
    transition: none;
    animation: none;
  }
}
