/* Keep one continuous page ground between the inset chapters. */
.home-chapters {
  --chapter-edge: clamp(10px,2.1vw,36px);
  --chapter-radius: clamp(28px,4vw,64px);
  --chapter-pad: clamp(19px,4.6vw,78px);
  display: grid;
  gap: clamp(12px,1.8vw,28px);
  padding: 0 var(--chapter-edge) clamp(16px,2vw,32px);
  background: #eeedf5;
}
.home-chapters > section {
  min-width: 0;
  border: 1px solid #d6d1de;
  border-radius: var(--chapter-radius);
  overflow: clip;
  isolation: isolate;
}
.home .home-chapters .screen-room {
  padding-block: clamp(38px,5.5vw,84px);
  color: #f7f5fa;
  background: #17151d;
  border-color: #39343f;
}
.home-chapters .screen-room > .shell,
.home-chapters .journey-width {
  width: min(calc(100% - 2 * var(--chapter-pad)), 1240px);
  margin-inline: auto;
  padding-inline: 0;
}
.home .home-chapters .question-chapter {
  background: #e6e2ed;
  padding-block: clamp(38px,5vw,80px);
}
.home-chapters .join-landscape-copy { margin-left: max(var(--chapter-pad), calc((100% - 1240px)/2)); }
.home-chapters .join-landscape { border-color: #d4cbc0; }
@supports (animation-timeline: view()) and (animation-range: entry 0% entry 65%) {
  @media (prefers-reduced-motion:no-preference) {
    html[data-motion=on] .home-chapters > section {
      transform-origin: center top;
      animation: open-opportunities 1s cubic-bezier(.22,.7,.2,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
.project-journey { background:#f9f7f3; color:#25222b; padding-block:clamp(35px,5vw,82px); }
.inner #main:has(.project-journey) { background:#f9f7f3; }
.inner main .guide-after { background:transparent; border-top:1px solid #d6d0d5; }
.journey-intro { display:flex; align-items:end; justify-content:space-between; gap:20px 40px; margin-bottom:clamp(25px,3.2vw,52px); }
.journey-intro .button, .journey-intro .line-link { flex:none; }
.project-journey .journey-intro :is(h1,h2) {
  color:#232027; font-size:clamp(40px,5vw,78px); font-weight:490; line-height:1.02; letter-spacing:-.064em; margin:0;
}
.journey-intro p { color:#504a52; max-width:52ch; margin:14px 0 0; font-size:clamp(16px,1.35vw,21px); line-height:1.48; }
.story-layout { display:grid; grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr); gap:clamp(26px,4.6vw,76px); align-items:stretch; }
.story-photo { position:relative; min-height:260px; margin:0; border-radius:clamp(16px,2vw,28px); overflow:hidden; background:#252327; color:white; }
.story-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.story-photo figcaption { position:absolute; inset:auto 0 0; padding:48px clamp(17px,2vw,32px) 18px; background:linear-gradient(transparent,#141218e8 46%,#141218f5); }
.story-photo strong { display:block; max-width:24ch; font-size:clamp(22px,2vw,33px); line-height:1.12; font-weight:520; letter-spacing:-.04em; }
.story-photo a { display:inline-flex; align-items:center; min-height:28px; margin-top:5px; font-size:12px; text-decoration:underline; text-underline-offset:3px; color:white; }
.story-steps { margin:0; padding:0; list-style:none; }
.story-steps li { border-top:1px solid #ccc6ce; }
.story-steps li:last-child { border-bottom:1px solid #ccc6ce; }
.story-steps a { display:grid; grid-template-columns:30px minmax(0,1fr) 20px; align-items:start; gap:clamp(10px,1.25vw,20px); padding:clamp(15px,1.55vw,25px) 1px; color:#26232b; }
.step-index { display:grid; place-items:center; width:28px; height:28px; margin-top:1px; border:1px solid #a39aa9; border-radius:100%; font-size:13px; font-variant-numeric:tabular-nums; }
.story-steps h3 { margin:0; font-size:clamp(21px,1.7vw,28px); font-weight:530; line-height:1.15; letter-spacing:-.038em; }
.story-steps p { max-width:57ch; color:#534d57; margin:6px 0 0; font-size:15px; line-height:1.46; }
.story-steps .icon { width:17px; margin-top:6px; }
.story-steps a:is(:hover,:focus-visible) h3 { text-decoration:underline; text-underline-offset:4px; }
.story-switch { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 20px; scroll-margin-top:10px; }
.story-switch a { display:flex; align-items:center; min-height:44px; padding:5px 14px; border-radius:24px; color:#504753; border:1px solid #c5bcc8; font-size:.9rem; }
.story-switch a[aria-current] { background:#302936; color:#fff; border-color:#302936; }
.story-more { margin-top:20px; }
.step-example { margin:18px 0 28px; padding:16px 19px; border-left:3px solid #8c7899; color:var(--ink); background:#e9e5ee; }
.step-example h2 { margin:0; font-size:1.05rem; font-weight:570; }
.step-example p { max-width:59ch; margin:7px 0; line-height:1.5; }
.review-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,4vw,62px); margin-top:clamp(25px,3vw,47px); }
.review-pair article { padding:clamp(20px,2.8vw,40px); background:#faf9fc; border:1px solid var(--line); border-radius:18px; }
.review-pair article>.ui-symbol { color:#554562; }
.review-pair h2 { font-size:clamp(25px,2.3vw,35px); letter-spacing:-.045em; margin:14px 0 8px; line-height:1.12; }
.review-pair h3 { margin:18px 0 5px; font-size:1rem; }
.review-pair p { color:var(--reading); font-size:1rem; line-height:1.55; }
.review-pair .line-link,.wg-companion { margin-top:19px; }
.answer-heading { margin-bottom:13px; }
.chat-greeting { width:fit-content; margin:0 0 14px; max-width:88%; padding:11px 15px; background:#f0edf5; color:#352c40; border-radius:18px 18px 18px 5px; line-height:1.45; font-size:15px; }
.answer-desk .ask-form { margin-top:13px; }
.answer-desk .ask-form input { font-size:16px; min-height:39px; }
.answer-desk .ask-form button { width:39px; height:39px; }
.ask-form .icon { width:19px; }
.guide-answer a { display:block; width:fit-content; }
@media (prefers-reduced-motion:no-preference) {
  html[data-motion=on] .story-steps a .icon { transition:transform .22s ease-out; }
  html[data-motion=on] .story-steps a:hover .icon { transform:translateX(3px); }
  html[data-motion=on] .story-switch ~ [data-example-panel] .story-layout { animation:story-arrive .24s ease-out; }
  @keyframes story-arrive { from {transform:translateY(4px);opacity:.88;} }
}
@media (max-width:760px) {
  .journey-intro { display:grid; align-items:start; gap:14px; }
  .journey-intro > a { justify-self:start; }
  .story-layout,.review-pair { grid-template-columns:minmax(0,1fr); gap:18px; }
  .story-photo { min-height:0; aspect-ratio:1.55; }
  .story-steps a { grid-template-columns:27px minmax(0,1fr) 16px; gap:10px; }
  .step-index { width:25px; height:25px; }
  .story-switch a { padding-inline:11px; }
  .home-chapters .question-layout { grid-template-columns:minmax(0,1fr); gap:17px; }
  .home-chapters .question-layout > header {padding:0;}
}
@media(max-width:700px) {
  .home .home-chapters .join-landscape-copy { margin:0; padding-inline:var(--chapter-pad); }
  .home .home-chapters .join-landscape picture:before { display:none; }
}
@media(max-width:400px) {
  .home-chapters { --chapter-pad:14px; }
  .home-chapters .answer-desk { padding:14px; }
  .story-photo { aspect-ratio:1.4; }
}

.collection-example { margin:20px 0 0; border-block:1px solid var(--line); }
.collection-example summary { padding:13px 0; cursor:pointer; font-weight:550; }
.collection-example p { margin:0 0 15px; line-height:1.5; }
