/* The opening is a film-poster composition. Text and original covers stay native HTML. */
.home-page .site-header { --focus: #f2d59b; color: #f4ecdf; border-color: #eed9b62e; background: transparent; }
.home-page .brand__mark { color: #e2c28a; border-color: #c8a35d; }
.home-page .brand__type small { color: #d7c3a2; }
.home-page .desktop-nav a, .home-page .header-cta { color: #f4ecdf; }
.home-page .header-cta, .home-page .menu-toggle { border-color: #b7a38880; }
.home-page .menu-toggle span { background: #f4ecdf; }
.home-page .desktop-nav a:hover, .home-page .header-cta:hover { color: #e2c28a; }

/* A continuous midnight-blue stage; every light fades before its bounds. */
.home-page .book-journey { --journey-night: #08111b; background: var(--journey-night); }
.home-page .book-journey__pin, .home-page .journey-ring { background: var(--journey-night); }
.home-page .book-journey.home-hero--orbit .orbit-stage {
  background: radial-gradient(ellipse 48% 48% at 50% 50%, #24415c30, transparent 100%),
    linear-gradient(180deg, #08111b, #0b1825 55%, #08111b);
}
.home-page .book-journey .orbit-stage::before,
.home-page .book-journey .orbit-stage::after { content: none; }
.home-page .book-journey .orbit-stage__light {
  inset: 0;
  background: radial-gradient(ellipse 38% 38% at 50% 48%, #e2c28a12, #e2c28a06 45%, #e2c28a00 100%);
}
.home-page .book-journey .orbit-choices { background: var(--journey-night); border-color: #e2c28a40; }
.home-page .book-journey .hero-choice { border-color: #e2c28a26; }
.home-page .book-journey .hero-choice:hover,
.home-page .book-journey .hero-choice.is-active { background: #192632; }

.home-page .cinematic-hero {
  --focus: #f2d59b;
  color: #f7f1e6;
  background: #08111b;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 28px 6vw;
  padding: 126px max(5.2vw, calc((100vw - 1440px) / 2 + 78px)) 30px;
}
.home-page .cinematic-hero__sky { z-index: -2; background: #08111b; overflow: hidden; }
.cinematic-hero__sky picture, .cinematic-hero__sky img { display: block; width: 100%; height: 100%; }
.cinematic-hero__sky .opening-world { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.cinematic-hero__sky .opening-world.is-active { opacity: 1; }
.cinematic-hero__sky img { object-fit: cover; object-position: 64% center; }
.home-page .cinematic-hero__sky::after {
  content: ''; display: block; position: absolute; inset: 0; opacity: 1; mask-image: none;
  /* Protect the copy while letting the central cream pages retain their light. */
  background: linear-gradient(90deg, #08111bed, #08111bc9 28%, #08111b70 39%, #08111b0d 50%, transparent 68%),
    linear-gradient(0deg, #08111b, #08111b6b 5%, transparent 15%, transparent 75%, #08111b70);
}
.home-page .cinematic-hero__copy { grid-column: 1; grid-row: 1; align-self: center; padding-block: 10px; }
.home-page .cinematic-hero .opening-title {
  font: 400 clamp(52px, min(6.1vw, 10svh), 96px)/1.08 var(--serif);
  letter-spacing: -.035em; margin: 0 0 28px; text-transform: none;
}
.home-page .cinematic-hero .opening-line { margin: 0; font-size: 1em; line-height: inherit; }
.home-page .cinematic-hero .opening-line > span { background: none; -webkit-text-stroke: 0; color: #f7f1e6; }
.home-page .cinematic-hero .opening-line--3 > span { color: var(--opening-accent, #e2c28a); }
.home-page .cinematic-hero__copy > p { max-width: 42ch; font-size: 17px; line-height: 1.8; color: #e1ddd5; }
.home-page .opening-actions { margin-top: 30px; gap: 18px 28px; }
.home-page .cinematic-hero__enter { background: var(--opening-accent, #dfc18b); border: 1px solid var(--opening-accent, #dfc18b); color: #101822; min-height: 50px; padding: 15px 25px; }
.home-page .cinematic-hero__enter:hover { background: #f4dab0; border-color: #f4dab0; color: #101822; }
.home-page .opening-sample-link { color: #eee2cf; border-color: #ad9674; min-height: 48px; }
.home-page .opening-sample-link:hover { color: #fff5e0; border-color: #f4dab0; }

/* One real cover stands in front of the artwork. It never shares the text column. */
.home-page .opening-display { grid-column: 2; grid-row: 1; align-self: center; position: relative; inset: auto; width: 100%; padding: 0; }
.home-page .opening-display__book {
  width: clamp(190px, min(23vw, 33svh), 340px);
  transform: rotateY(-13deg) rotateZ(2deg);
  filter: drop-shadow(20px 28px 23px #000a);
}
.home-page .opening-book { background: #11171b; isolation: isolate; box-shadow: none; }
.home-page .opening-book .opening-book__cover { background: #11171b; border: 1px solid #ead9b747; }
.home-page .opening-book:focus-visible { outline-color: #f2d59b; }
.home-page .opening-display__note { margin-top: 24px; gap: 4px; padding: 12px 16px; background: #08111bf5; border: 1px solid #ead9b733; }
.home-page .opening-display__note > span { color: #ded6c7; font-size: 13px; }
.home-page .opening-display__caption { color: #f6ead6; font: 400 27px/1.25 var(--serif); }
.home-page .opening-display__read { color: var(--opening-accent, #e2c28a); border-color: var(--opening-accent, #ad9674); font-size: 14px; min-height: 44px; }
.home-page .opening-display__read:hover { color: #fff0d5; }

/* A quiet cover shelf borrows the immediacy of a streaming catalogue. */
.opening-shelf { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 40px; border-top: 1px solid #e2c28a55; padding-top: 18px; min-width: 0; }
.home-page .opening-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; flex: 1; margin: 0; min-width: 0; }
.home-page .opening-choice { display: flex; align-items: center; gap: 17px; text-align: left; color: #e1ddd5; margin: 0; padding: 0 0 10px; border-bottom: 2px solid transparent; min-width: 0; }
.home-page .opening-choice:hover, .home-page .opening-choice.is-active { color: var(--opening-accent, #f5dcaf); border-bottom-color: var(--opening-accent, #dfc18b); }
.opening-choice__cover { display: block; width: 56px; height: 80px; flex-shrink: 0; }
.opening-choice__cover img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(4px 6px 6px #0006); }
.opening-choice__text { display: grid; gap: 8px; min-width: 0; }
.opening-choice__text strong { font: 400 clamp(17px, 1.4vw, 21px)/1.3 var(--serif); overflow-wrap: anywhere; }
.opening-choice__text > span { font: 400 13px/1.5 var(--sans); color: #ded6c7; }
.opening-shelf__more { color: #f0ddba; font-size: 14px; min-height: 48px; display: inline-flex; align-items: center; border-bottom: 1px solid #ad9674; flex-shrink: 0; }
.opening-shelf__more:hover { color: #fff2d9; }
.cinematic-hero :focus-visible { outline: 2px solid #f2d59b; outline-offset: 6px; }

/* Reserve a separate quiet foreground for the book choices. Shortening only
   the decorative scene lifts the integrated open book away from their rule. */
@media (min-width: 1101px) {
  .home-page .cinematic-hero__sky { bottom: clamp(115px, 16svh, 160px); }
  .home-page .opening-display { max-width: 360px; justify-self: end; }
  .home-page .opening-display__note {
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 20px;
    row-gap: 5px;
    text-align: left;
    margin-top: 20px;
  }
  .home-page .opening-display__note > span { grid-column: 1 / -1; justify-self: start; }
  .home-page .opening-display__caption { grid-column: 1; font-size: 25px; }
  .home-page .opening-display__read { grid-column: 2; }
  .home-page .cinematic-hero__copy > p { max-width: 38ch; }
}

@media (min-width: 761px) and (max-height: 740px) {
  .home-page .cinematic-hero { padding-top: 100px; padding-bottom: 22px; gap: 18px 5vw; }
  .home-page .cinematic-hero .opening-title { font-size: clamp(42px, 8.2svh, 60px); margin-bottom: 20px; }
  .home-page .cinematic-hero__copy > p { font-size: 16px; line-height: 1.7; }
  .home-page .opening-actions { margin-top: 20px; }
  .home-page .opening-display__book { width: clamp(165px, 29svh, 215px); }
  .home-page .opening-display__note { margin-top: 14px; }
  .home-page .opening-display__caption { font-size: 24px; }
  .opening-choice__cover { width: 43px; height: 64px; }
  .opening-shelf { padding-top: 12px; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .home-page .opening-choices { gap: 18px; }
  .home-page .opening-choice { gap: 12px; }
  .opening-choice__text > span { display: none; }
  .opening-shelf { gap: 22px; }
  .opening-shelf__more { max-width: 100px; }
}
@media (max-width: 760px) {
  .home-page .cinematic-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 35px; padding: 112px 24px 30px; min-height: 0; }
  .home-page .cinematic-hero__sky img { object-position: 77% center; }
  .home-page .cinematic-hero__sky::after { background: linear-gradient(180deg, #08111be0, #08111b9c 38%, #08111b24 60%, #08111bd9 81%, #08111b); }
  .home-page .cinematic-hero__copy { grid-column: 1; grid-row: 1; padding: 0; }
  .home-page .cinematic-hero .opening-title { font-size: clamp(43px, 10.5vw, 76px); margin-bottom: 24px; }
  .home-page .cinematic-hero__copy > p { max-width: 42ch; font-size: 16px; }
  .home-page .opening-actions { margin-top: 24px; gap: 14px 22px; }
  .home-page .opening-display { grid-column: 1; grid-row: 2; padding: 10px 0 0; }
  .home-page .opening-display__book { width: clamp(190px, 49vw, 270px); }
  .home-page .opening-display__note { margin-top: 21px; }
  .opening-shelf { grid-column: 1; grid-row: 3; flex-wrap: wrap; gap: 15px; padding-top: 20px; }
  .home-page .opening-choices { flex-basis: 100%; gap: 14px; }
  .home-page .opening-choice { flex-direction: column; gap: 12px; align-items: center; text-align: center; padding-bottom: 12px; }
  .opening-choice__cover { width: 54px; height: 80px; }
  .opening-choice__text strong { font-size: 16px; }
  .opening-choice__text > span { display: none; }
  .opening-shelf__more { min-height: 44px; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .opening-display__book { translate: 0; transition: none; }
  .cinematic-hero__sky .opening-world { transition: none; }
}
