.chapter--tokyo {
  background: #0a0a0a;
  /* #experience's body is `display:flex; align-items:center`, so without an
     explicit width this section (and its flex-item parent <main>) shrink-wraps
     to its content instead of the viewport, breaking the horizontal clip.
     `100%` (not `100vw`) so this resolves against the actual visible content
     box — `100vw` includes classic (non-overlay) scrollbar width on platforms
     that reserve space for it, making the section wider than the viewport
     and introducing an unwanted horizontal scrollbar. */
  width: 100%;
}

.tokyo-title {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #f0ebe3;
}

.tokyo-track {
  display: flex;
  height: 100vh;
  will-change: transform;
}

.tokyo-track img {
  height: 100vh;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.tokyo-story {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(88vw, 460px);
  padding: 2rem 1.75rem;
  background: linear-gradient(rgba(10,10,10,0.75), rgba(10,10,10,0.55) 70%, rgba(10,10,10,0.75));
  backdrop-filter: blur(2px);
  border-radius: 4px;
}

.tokyo-story p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(240,235,227,0.92);
  letter-spacing: 0.01em;
}

.tokyo-story p + p {
  margin-top: 1.5rem;
}

.tokyo-story p.tokyo-story-source {
  font-size: 0.75rem;
  color: rgba(240,235,227,0.5);
  letter-spacing: 0.04em;
}

/* Held back until the chapter module has run, so the panel doesn't flash at
   `top: 0` over the images in the gap while it loads. Deliberately not a
   pre-set transform: GSAP animates this element's `transform` and treats an
   existing CSS one as its baseline, and a transform here would also survive
   as a permanent offset under reduced motion, where init() returns before it
   positions the block. `visibility` is untouched by GSAP, and
   chapter-loader.js sets `data-chapter-ready` right after init(). */
.chapter--tokyo:not([data-chapter-ready]) .tokyo-story {
  visibility: hidden;
}
