.home-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #1d2625;
}
.home-page::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #151c1ce6, #202927cc 54%, #2029274f),
    linear-gradient(90deg, #19201df2, #27312e66 64%, #29332f88),
    url('f0d73b5b7596edc35e79.webp') 48% 83% / cover no-repeat;
}
.home-page::after {
  content: ''; position: absolute; bottom: -6%; right: -3%; width: 32%; height: 17%;
  background: url('e966d139728c2b212be2.webp') center / 100% 100% no-repeat; opacity: .39; pointer-events: none;
}
.hero {
  position: relative; display: flex; align-items: center; isolation: isolate;
  min-height: max(420px, 100vh); min-height: max(420px, 100svh); container-type: inline-size;
  max-width: 185svh; margin-inline: auto;
}
.hero::before {
  content: ''; position: absolute; top: -4%; left: -2.4%; width: 30%; height: 22%; z-index: -1;
  opacity: .64; transform: rotate(-12deg); pointer-events: none;
  background: url('e966d139728c2b212be2.webp') left top / 100% 100% no-repeat;
}
.ensemble-scene {
  /* 高窗多展示腰部，宽窗从下方裁切。渐隐跟随可见画幅，人物始终等比。 */
  --width: clamp(74cqw, 63cqw + 19svh, 79cqw);
  --sky: calc(var(--width) * 200 / 1280);
  --offset: max(-1 * var(--sky), (100svh - var(--width) * 1.25) / 2);
  --end: min(100%, 100svh - var(--offset));
  position: absolute; width: var(--width); aspect-ratio: 1280 / 1400;
  top: var(--offset); right: -1%; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #0009 8%, black 15%, black 94%, var(--edge, black)),
    linear-gradient(180deg, transparent, black 12%, black calc(var(--end) - 21svh), #000b calc(var(--end) - 10svh), transparent var(--end));
  mask-composite: intersect;
}
.ensemble-art { display: block; width: 100%; height: auto; user-select: none; }
.hero-intro {
  position: relative; margin-left: 4%; width: 27.2%; z-index: 1;
  filter: drop-shadow(0 2px 10px #101715);
}
.hero .eyebrow { width: fit-content; gap: .8em; color: #d5bd95; font-size: clamp(.77rem, 1.26cqw, 1.07rem); letter-spacing: .16em; white-space: nowrap; }
.hero .eyebrow::before { width: 1.8em; }
.hero .eyebrow::after { content: ''; width: 1.8em; height: 1px; background: linear-gradient(90deg, #b39a7399, transparent); }
.hero-title { width: fit-content; margin: clamp(11px, 1.65vw, 26px) 0 clamp(23px, 3.2vw, 51px); font-weight: 400; }
.title-line { display: flex; align-items: center; gap: .5em; }
.title-ink { display: block; width: clamp(160px, 24.1cqw, 392px); height: auto; filter: drop-shadow(0 2px 7px #1015128a); }
.seal {
  writing-mode: vertical-rl; flex: none; padding: 5px 2px; color: #ffb291; border: 1px solid #c97559; background: #572b23eb;
  border-radius: 24% 20% 25% 24% / 13% 13% 12% 12%; box-shadow: inset 0 0 0 1px #713b32;
  font: 400 clamp(14px, 1.36cqw, 22px)/1.08 var(--display); transform: rotate(2deg);
}
.hero-names { display: block; margin: 3px 8% 0 0; text-align: center; color: #e0c9a4; font: 500 clamp(13px,1.35cqw,21px)/1.15 var(--roman); letter-spacing: .29em; }
.hero-names i { font: italic .74em Georgia, serif; }
.hero-actions { display: grid; width: fit-content; justify-content: start; gap: clamp(9px, 1.45vh, 16px); }
.hero-actions .ink-button { min-width: clamp(150px, 16cqw, 235px); justify-content: space-between; gap: 1.1em; }
.button-arrow { flex: none; width: .48em; height: .48em; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.ink-button {
  --rim: #ad956bb3; --face: #1c2323de; --inset-line: #c8ac7e87;
  --lit: linear-gradient(115deg, #c4ad8bd9, #e0c9a9f0 54%, #c4aa86e6), url('f0d73b5b7596edc35e79.webp') 37% 45% / 210% auto;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: clamp(38px, 5.3vh, 55px); padding: 6px clamp(13px, 1.55vw, 30px); color: #e3d4ba;
  font: 400 clamp(.92rem, 1.12vw, 1.27rem)/1.4 var(--serif); letter-spacing: .07em; white-space: nowrap;
}
.ink-button::before, .ink-button::after {
  content: ''; position: absolute; z-index: -1;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 4px) 3px, 100% 5px, 100% calc(100% - 5px), calc(100% - 4px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 4px calc(100% - 3px), 0 calc(100% - 5px), 0 5px, 4px 3px);
}
.ink-button::before { inset: 0; background: var(--rim); }
.ink-button::after { inset: 1px; border: 2px solid var(--face); outline: 1px solid transparent; box-shadow: inset 0 0 0 1px var(--inset-line); background: var(--surface, var(--face)); }
.ink-button:is(:focus-visible, :active) {
  --surface: var(--lit); --rim: #ebcd9b; --face: #b8a07d; --inset-line: #605039; color: #191e19;
}
@media (hover: hover) {
  .ink-button:hover {
    --surface: var(--lit); --rim: #ebcd9b; --face: #b8a07d; --inset-line: #605039; color: #191e19;
  }
  .hero-actions .ink-button:hover { transform: translateX(3px); filter: brightness(1.08); }
}

.hero-actions .ink-button { transition: transform .18s ease-out, filter .18s ease-out; }
.hero-actions .ink-button:active { transform: translateX(1px); }
.hero-actions .ink-button::after { transition: box-shadow .18s, border-color .18s; }
.hero-intro { animation: gallery-rise .42s ease-out both; }
@media (min-aspect-ratio: 37/20) {
  .ensemble-scene { --edge: transparent; }
}
@media (max-width: 950px) {
  .hero .eyebrow::after { display: none; }
  .hero .eyebrow { letter-spacing: .08em; }
}
@media (max-aspect-ratio: 5/4), (max-width: 820px), (max-width: 950px) and (max-aspect-ratio: 3/2) {
  .hero { flex-direction: column; justify-content: center; padding-block: 0 5vh; }
  .ensemble-scene {
    position: relative; inset: auto; width: min(100%, 85svh); aspect-ratio: 16 / 15;
    mask-image: linear-gradient(90deg, transparent, black 6%, black 96%, transparent),
      linear-gradient(180deg, transparent, black 6%, black 74%, transparent);
  }
  .ensemble-art { margin-top: -10%; }
  .hero-intro {
    width: min(88%, 720px); margin: -7% auto 0; display: grid;
    grid-template-columns: 1fr auto; align-items: center; gap: 10px 18px;
  }
  .hero-title { margin: 0; }
  .title-ink { width: clamp(180px, 40cqw, 336px); }
  .hero-actions { grid-area: 1 / 2 / 3 / 3; }
}
@media (max-width: 680px) {
  body:has(main[data-view="home"]) { display: grid; grid-template-rows: auto 1fr; min-height: 100svh; }
  main[data-view="home"], main[data-view="home"] #page, .home-page { display: grid; min-width: 0; }
  main[data-view="home"], .hero { min-height: 0; }
  .hero { width: 100%; padding-bottom: 30px; }
  .ensemble-scene {
    width: 100%; aspect-ratio: 1280 / 1400;
    mask-image: linear-gradient(90deg, transparent, black 6%),
      linear-gradient(180deg, transparent, #0004 6%, black 19%, black 74%, transparent);
  }
  .ensemble-art { margin-top: 0; }
  .title-ink { width: clamp(186px, 51cqw, 250px); }
  .seal { font-size: 16px; }
}
@container (max-width: 470px) {
  .hero-intro { display: flex; flex-direction: column; gap: 14px; }
  .hero-actions { grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .hero-actions .ink-button { min-width: 0; gap: 4px; padding-inline: 10px; font-size: .84rem; }
  .hero-actions [href="#notice"] { grid-column: 1 / -1; justify-content: center; gap: 1em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-actions .ink-button:hover, .hero-actions .ink-button:active { transform: none; }
}
