/* Story sections after the hero film, in the approved order (plan section 1):
   what this is -> why it exists + host -> who you meet -> seven places + archive.
   Palette and type tokens from ara-family.css. */

/* ---------- 1. What this is: rises over the photo's lower edge (beat 7 hand-over) ---------- */
:root { --handover: 16vh; }
.intro { position: relative; z-index: 2; background: var(--wash); padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(3rem, 6vw, 4.5rem); }
.imm-live .intro { margin-top: calc(-1 * var(--handover)); box-shadow: 0 -30px 60px -40px rgba(5, 6, 30, 0.8); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro__copy .h2 { font-size: clamp(2rem, 4vw, 3rem); }
.intro__lede { margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--ink); max-width: 34em; }
.status-line { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font: 600 0.8rem/1.5 var(--label); color: var(--ink-soft); }
.status-line span { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.status-line span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.status-line .is-open { color: var(--blue); }
.status-line .is-open::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(0, 92, 165, 0.18); }
.intro__side .meishi { margin: 0 0 0 auto; animation: none; }
@media (min-width: 901px) {
  .imm-live .intro__side .meishi { margin-top: calc(-1 * clamp(7rem, 12vw, 10rem)); }
}

/* ---------- 2. Why it exists, and the host ---------- */
.story { background: #fff; padding-block: var(--section); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.story__main p + p { margin-top: 1.1rem; }
.story__lead { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.008em; }
html[lang="ja"] .story__lead { font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.7; letter-spacing: 0.02em; }
.story__main p:not(.story__lead) { font-size: 1.02rem; line-height: 1.75; }
.story__quote {
  display: block; margin: 1.4rem 0 1.2rem; padding-left: 1.2rem; border-left: 3px solid var(--cyan);
  font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.2; color: var(--blue);
}
html[lang="ja"] .story__quote { font-style: normal; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.5; word-break: keep-all; }
.story__side { display: grid; gap: 1.8rem; }
.hostcard { padding-top: 1.2rem; border-top: 3px solid var(--navy); }
.hostcard p:not(.eyebrow) { font-size: 0.98rem; line-height: 1.7; }
.hostcard__access { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--wash); border-radius: 8px; font-size: 0.92rem !important; }
.hostcard__access b { display: block; font: 700 0.72rem/1.4 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.2rem; }
html[lang="ja"] .hostcard__access b { letter-spacing: 0.08em; white-space: nowrap; }
.story__band { margin-top: clamp(2.2rem, 4vw, 3rem); }
.story__band .pic__frame { aspect-ratio: 21 / 8; }
.story__band img { object-position: 50% 55%; }
@media (max-width: 640px) { .story__band .pic__frame { aspect-ratio: 16 / 9; } }

/* ---------- 3. Who you meet: Batch 08 focus, photographs, the six visit types ---------- */
.meet { background: var(--wash); padding-block: var(--section); }
.meet__head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1rem clamp(2rem, 5vw, 4rem); align-items: end; }
.meet__head p { font-size: 1rem; line-height: 1.7; }
.meet__note { margin-top: 0.8rem; font-size: 0.9rem !important; color: var(--ink-faint); }
.meet__pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.meet__pic { margin: 0; }
.meet__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--line); }
.meet__pic figcaption { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
.meet__pic figcaption b { display: block; font-family: var(--label); font-size: 0.78rem; color: var(--navy); }
html[lang="ja"] .meet__pic figcaption b { white-space: nowrap; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2.8rem; border-top: 1px solid var(--line-strong); }
.types li { padding: 1.4rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line-strong); }
.types li:nth-child(3n+2), .types li:nth-child(3n) { padding-left: 1.6rem; border-left: 1px solid var(--line-strong); }
.types__n { display: block; font: 700 0.72rem/1 var(--label); letter-spacing: 0.14em; color: var(--blue); }
.types__h { margin-top: 0.7rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; }
.types p { margin-top: 0.55rem; font-size: 0.92rem; line-height: 1.65; }

/* ---------- 4. Seven places and the archive ---------- */
.archive { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: start; }
.archive__h { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.archive__copy p + p { margin-top: 0.9rem; }

/* ---------- Key facts: the intro sits under the heading (fix 6) ---------- */
.facts .facts__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
.facts__lead { max-width: 44rem; }
.facts__head > p { margin-top: -0.4rem; }

@media (max-width: 1100px) {
  .meet__pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .intro__grid, .story__grid, .meet__head, .archive { grid-template-columns: minmax(0, 1fr); }
  .intro__side .meishi { margin: 0.6rem 0 0; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .types li, .types li:nth-child(3n+2), .types li:nth-child(3n) { padding: 1.2rem 0; border-left: 0; }
}
@media (max-width: 640px) {
  :root { --handover: 12vh; }
  .map__canvas { display: none; }
  .map__cities { margin-top: 0; }
  .story__lead { font-size: 1.3rem; }
  html[lang="ja"] .story__lead { font-size: 1.1rem; }
  .story__quote { font-size: 1.45rem; margin: 1rem 0 0.9rem; }
  .types { margin-top: 2rem; }
  .types li, .types li:nth-child(3n+2), .types li:nth-child(3n) { padding: 0.95rem 0; }
  .types__h { margin-top: 0.45rem; font-size: 1.1rem; }
  .types p { font-size: 0.88rem; line-height: 1.6; }
  .meet__pics { margin-top: 1.8rem; }
  .meet__pics {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74vw; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 0.6rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .meet__pic { scroll-snap-align: start; }
  .meet__pic img { aspect-ratio: 4 / 3; }
}
html[lang="ja"] :is(.types__h, .archive__h, .status-line span) { word-break: auto-phrase; }
html[lang="ja"] .archive__h { word-break: keep-all; }
html[lang="ja"] :is(#meet-h, #visits-h) { word-break: keep-all; }
