/* A full viewport entrance. The portrait painting remains whole at every ratio. */
:root {
  --paper: #f1eee5;
  --paper-bright: #f8f6ef;
  --paper-deep: #e7e3d8;
  --ink: #302f2a;
  --ink-soft: #56564e;
  --ink-faint: #69675e;
  --cinnabar: #4d6457;
  --cinnabar-br: #42594c;
  --warm-ink: saturate(.6);
  --brush: 'Yinian Reading', 'STKaiti', 'KaiTi', serif;
  --kai: 'Yinian Reading', 'STKaiti', 'KaiTi', serif;
  --song: 'Yinian Reading', 'Songti SC', 'STSong', serif;
}
#gate { background: #1f201b; isolation: isolate; }
#gate .g-scroll {
  width: 100%; max-width: none; height: 100%; min-height: 100svh;
  aspect-ratio: auto; perspective: 1800px; box-shadow: none;
}
#gate .g-night { background: #24251f; }
#gate .g-aura, #gate .g-bagua, #gate .g-cloud, #gate .g-emblem, #gate .g-mist { display: none; }
#gate .g-beyond {
  opacity: 1; background: #f1eee5 url('/assets/product/art/master_nianxin.webp') center bottom / contain no-repeat;
}
#gate .g-half {
  width: calc(50% + 1px); background:
    linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,.24) 20%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.4)),
    url('/assets/product/art/smoked-elm-v1.webp') center / auto 100%;
  box-shadow: inset 0 0 0 1px #534c3b, inset 0 0 0 12px #28251e,
    inset 0 0 0 13px #63533a, inset 0 0 0 17px #191b17, inset 0 0 70px #080b08;
  transition: transform 1.6s cubic-bezier(.22,.68,.18,1);
}
#gate .g-half.left, #gate .g-half.right { background-position: center, center; }
#gate .g-half::before {
  inset: clamp(28px, 5vw, 76px) clamp(22px, 4vw, 62px);
  border: 1px solid #8d785247; border-radius: 1px;
  background:
    linear-gradient(#baa77c40, #baa77c40) 0 33% / 100% 1px no-repeat,
    linear-gradient(#baa77c40, #baa77c40) 0 72% / 100% 1px no-repeat,
    linear-gradient(90deg, #0007, transparent 6%, transparent 94%, #0007);
  box-shadow: inset 2px 2px 8px #0008, 1px 1px 0 #b7a47c26;
  opacity: 1;
}
#gate .g-half::after { background: linear-gradient(90deg, #05070388, transparent 20%, transparent 92%, #05070388); }
#gate .g-half .g-ring {
  top: 57%; width: clamp(36px, 6vw, 58px); border: 5px solid #83704c;
  background: transparent; box-shadow: inset 1px 1px 2px #e5c89188, inset -1px -1px 2px #1c1d13,
    1px 4px 5px #0008, 0 -13px 0 -9px #b8a16c;
}
#gate .g-half.left .g-ring { right: clamp(34px, 5vw, 80px); }
#gate .g-half.right .g-ring { left: clamp(34px, 5vw, 80px); }
#gate .g-plaque { top: 14%; z-index: 6; width: 90%; text-align: center; }
#gate .g-plaque::before { display: none; }
#gate .g-plaque .mark { font-size: clamp(64px, 15vw, 102px); color: #e7dec9; letter-spacing: .16em; text-indent: .16em; text-shadow: 0 2px 8px #0005; }
#gate .g-plaque .sub { font-family: var(--kai); font-size: 16px; letter-spacing: .32em; color: #c2b89e; margin-top: 18px; }
#gate .g-plaque .tag { font-family: var(--kai); font-size: 16px; color: #c2b89e; margin-top: 14px; letter-spacing: .08em; }
#gate .g-plaque .whisper { display: none; }
#gate .g-hint { z-index: 6; bottom: max(12%, calc(env(safe-area-inset-bottom) + 60px)); }
#gate .g-hint svg { width: 26px; height: 26px; animation: none; }
#gate .g-hint .t { color: #e5ddca; font-family: var(--kai); font-size: 16px; font-weight: 400; letter-spacing: .18em; }
#gate .g-seam { top: 0; bottom: 0; width: 1px; background: #d6c392; opacity: .25; box-shadow: 0 0 12px #e5d7ae40; }
#gate .g-shaft { top: 0; bottom: 0; background: #f5ecd7; opacity: 0; }
#gate.opened .g-half.left { animation: studyDoorLeft 2.2s cubic-bezier(.28,.08,.15,1) forwards; }
#gate.opened .g-half.right { animation: studyDoorRight 2.2s cubic-bezier(.28,.08,.15,1) forwards; }
#gate.opened .g-shaft { animation: studyLight 1.9s ease forwards; }
#gate.opened { animation: studyGateAway .5s ease 1.9s forwards; }
#gate.opened .g-plaque, #gate.opened .g-hint { transition: opacity .45s ease; }
@keyframes studyDoorLeft { from { transform: rotateY(0); } to { transform: rotateY(-100deg); } }
@keyframes studyDoorRight { from { transform: rotateY(0); } to { transform: rotateY(100deg); } }
@keyframes studyLight { 0% { opacity: 0; transform: translateX(-50%) scaleX(1); } 30% { opacity: .6; } 100% { opacity: 0; transform: translateX(-50%) scaleX(60); } }
@keyframes studyGateAway { to { opacity: 0; visibility: hidden; } }
#gateSkip { min-height: 44px; display: flex; align-items: center; bottom: max(3%, env(safe-area-inset-bottom)); background: transparent; box-shadow: none; border: 0; color: #cec5af; font-size: 14px; }
#reveal { min-height: 100svh; min-height: 100dvh; background: #f1eee5; isolation: isolate; }
#reveal .scene { background-size: contain; background-position: center bottom; filter: none; transform: none; transition: none; }
#reveal .scene::after { background: linear-gradient(180deg, #f1eee520, transparent 24%, transparent 92%, #f1eee5); }
#reveal h1 { top: 15%; left: 50%; flex-direction: row; gap: .12em; font-size: clamp(54px, 17vw, 80px); }
#reveal .tagline { top: 26%; left: 0; right: 0; text-align: center; writing-mode: horizontal-tb; font-family: var(--kai); font-size: 16px; letter-spacing: .12em; color: #555e50; }
#reveal .scroll-cue { bottom: 2.5%; font-family: var(--kai); font-size: 14px; letter-spacing: .12em; }
#reveal .scroll-cue .arrow { font-size: 20px; }
@media (max-width: 430px) and (max-height: 650px) {
  #reveal .scroll-cue .cue-text { display: none; }
  #reveal .scroll-cue { bottom: 1%; }
}
#topEnter .te-link { min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 14px; background: #f5f1e8e8; box-shadow: none; border-color: #302f2a24; }
#topEnter .te-dl { color: #f6f3eb; background: #4d6457; border-color: transparent; box-shadow: none; }
.section { padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(64px, 10vw, 112px); }
.creed .lead { font-family: var(--song); font-size: clamp(28px, 7vw, 42px); color: var(--ink); }
.creed p, .feat-body p { font-size: 17px; line-height: 1.9; }
.k { color: #4d6457; border-bottom-color: #4d645740; }
.creed .pillar::after { display: none; }
.install-family { display: none; }
.mg-intro .mg-four { color: var(--ink-soft); }
.shot-quote { font-family: var(--kai); color: var(--ink-soft); }
footer { font-size: 14px; }
@media (min-width: 880px) {
  #gate .g-beyond { background-position: 78% bottom; }
  #gate .g-plaque { top: 16%; }
  #gate .g-hint { bottom: 13%; }
  #reveal .scene { left: 36%; background-position: center bottom; }
  #reveal h1 { left: 25%; top: 38%; font-size: clamp(82px, 9vw, 124px); }
  #reveal .tagline { left: 8%; right: 58%; top: 56%; line-height: 1.9; }
  #reveal .scroll-cue { left: 25%; bottom: 14%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #gate .g-plaque { top: 9%; }
  #gate .g-plaque .mark { font-size: 48px; }
  #gate .g-plaque .tag { display: none; }
  #gate .g-hint { bottom: 14%; }
  #gate .g-hint svg { display: none; }
  #reveal .scene { left: 42%; }
  #reveal h1 { left: 24%; top: 35%; font-size: 64px; }
  #reveal .tagline { top: 57%; left: 3%; right: 55%; }
  #reveal .scroll-cue { left: 24%; }
}
@media (prefers-reduced-motion: reduce) {
  #gate *, #gate *::before, #gate *::after { animation: none !important; transition: none !important; }
  #gate.opened { animation: none; opacity: 0; visibility: hidden; }
  #reveal h1 { transform: translate(-50%, -50%) !important; }
}
