:root {
  --yb-ivory: #f1eee5;
  --yb-muted: rgba(241, 238, 229, 0.62);
  --yb-line: rgba(241, 238, 229, 0.22);
  --yb-gold: #c9aa76;
}

html.yb-locked,
html.yb-locked body {
  overflow: hidden !important;
}

.yb-intro {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  color: var(--yb-ivory);
  background: #05080c;
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  opacity: 0;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  visibility: hidden;
  isolation: isolate;
}

.yb-intro.is-ready {
  opacity: 1;
  visibility: visible;
}

.yb-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.yb-film {
  position: absolute;
  inset: -5%;
  z-index: -4;
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.45) brightness(0.52) contrast(1.2);
  transform: scale(1.08);
  animation: yb-camera 14s cubic-bezier(.2,.7,.2,1) infinite alternate;
}

.yb-veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 67% 38%, transparent 0 18%, rgba(4, 8, 13, 0.08) 43%, rgba(4, 8, 13, 0.56) 100%),
    linear-gradient(90deg, rgba(3, 6, 10, 0.72), rgba(5, 9, 14, 0.08) 58%, rgba(3, 6, 10, 0.38));
}

.yb-grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.yb-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 24px clamp(20px, 4vw, 64px) 0;
  padding: 17px 22px;
  border: 1px solid var(--yb-line);
  background: rgba(4, 8, 12, 0.24);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-18px);
}

.home header.yb-nav {
  display: flex !important;
}

.is-ready .yb-nav {
  animation: yb-rise 0.8s 0.18s cubic-bezier(.2,.8,.2,1) forwards;
}

.yb-brand,
.yb-nav nav,
.yb-nav a {
  display: flex;
  align-items: center;
}

.yb-brand,
.yb-nav a {
  color: inherit;
  text-decoration: none;
}

.yb-brand {
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.yb-brand-mark {
  width: 7px;
  height: 7px;
  border: 1px solid var(--yb-gold);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--yb-gold);
}

.yb-nav nav {
  gap: clamp(16px, 2.5vw, 40px);
}

.yb-nav nav a {
  position: relative;
  color: var(--yb-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 0.25s ease;
}

.yb-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--yb-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.yb-nav nav a:hover {
  color: var(--yb-ivory);
}

.yb-nav nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.yb-copy {
  position: absolute;
  left: clamp(24px, 7vw, 112px);
  right: clamp(24px, 7vw, 112px);
  bottom: clamp(34px, 7vh, 90px);
}

.yb-eyebrow {
  margin: 0 0 18px;
  color: var(--yb-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  opacity: 0;
  transform: translateY(15px);
}

.is-ready .yb-eyebrow {
  animation: yb-rise 0.7s 0.5s ease forwards;
}

.yb-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
  margin: 0;
  color: var(--yb-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 10.8vw, 172px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.75;
}

.yb-copy h1 span {
  display: block;
  opacity: 0;
  transform: translateY(60px);
}

.is-ready .yb-copy h1 span:first-child {
  animation: yb-title 1s 0.62s cubic-bezier(.16,.8,.24,1) forwards;
}

.is-ready .yb-copy h1 span:nth-child(2) {
  animation: yb-title 1s 0.76s cubic-bezier(.16,.8,.24,1) forwards;
}

.yb-copy h1 .yb-outline {
  margin-left: clamp(38px, 8vw, 128px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 238, 229, 0.72);
}

.yb-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0 0 clamp(40px, 8vw, 128px);
  opacity: 0;
  transform: translateY(20px);
}

.is-ready .yb-bottom {
  animation: yb-rise 0.8s 1.05s ease forwards;
}

.yb-bottom p {
  margin: 0;
  color: var(--yb-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.yb-enter {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 170px;
  padding: 12px 12px 12px 20px;
  color: var(--yb-ivory);
  border: 1px solid var(--yb-line);
  border-radius: 999px;
  background: rgba(4, 8, 12, 0.25);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.yb-enter i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #091016;
  background: var(--yb-ivory);
  font-size: 16px;
  font-style: normal;
  transition: transform 0.35s ease;
}

.yb-enter:hover {
  color: #081016;
  background: var(--yb-ivory);
  transform: translateY(-3px);
}

.yb-enter:hover i {
  background: var(--yb-gold);
  transform: rotate(45deg);
}

.yb-index {
  position: absolute;
  right: 18px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yb-muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  transform: rotate(90deg) translateY(-50%);
}

.yb-index b {
  display: block;
  width: 58px;
  height: 1px;
  background: var(--yb-line);
}

@keyframes yb-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes yb-title {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes yb-camera {
  from { transform: scale(1.08) translate3d(-1%, -1%, 0); }
  to { transform: scale(1.16) translate3d(1.5%, 1%, 0); }
}

@media (max-width: 720px) {
  .yb-film {
    object-position: 58% center;
  }

  .yb-nav {
    margin: 14px;
    padding: 14px 16px;
  }

  .yb-brand {
    font-size: 10px;
  }

  .yb-nav nav {
    display: none;
  }

  .yb-copy {
    left: 20px;
    right: 20px;
    bottom: 28px;
  }

  .yb-eyebrow {
    max-width: 260px;
    font-size: 9px;
    line-height: 1.7;
  }

  .yb-copy h1 {
    width: 100%;
    font-size: clamp(54px, 16.5vw, 68px);
    line-height: 0.84;
  }

  .yb-copy h1 .yb-outline {
    margin-top: 8px;
    margin-left: 0;
    -webkit-text-stroke-width: 0.75px;
  }

  .yb-bottom {
    display: block;
    margin: 28px 0 0;
  }

  .yb-bottom p {
    max-width: 300px;
    font-size: 11px;
  }

  .yb-enter {
    width: min(100%, 350px);
    max-width: calc(100vw - 40px);
    justify-content: space-between;
    margin-top: 24px;
  }

  .yb-index {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-film,
  .yb-intro *,
  .yb-intro *::before,
  .yb-intro *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
