/* Phase 4 is deliberately scoped: the completed invitation keeps its own styles. */
.photographic-journey {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 0, #21334d 0, var(--navy) 28%, #080f20 75%);
  color: var(--pearl);
  padding: clamp(4rem, 9vw, 7rem) 0 7rem;
}
.journey-intro {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 27rem;
  width: min(90%, 44rem);
  margin: 0 auto 2rem;
  padding: 3rem 1rem;
  text-align: center;
  isolation: isolate;
}
.journey-arches { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.journey-arches::before, .journey-arches::after {
  content: ''; position: absolute; inset: 0 8%; border: 1px solid #bac4d530;
  border-bottom: 0; border-radius: 50% 50% 0 0;
  background: linear-gradient(160deg, transparent 30%, #edf3ff08 46%, transparent 60%);
  mask-image: linear-gradient(#000 55%, transparent);
}
.journey-arches::after { inset: 1rem calc(8% + 1rem); background: none; border-color: #bac4d517; }
.journey-cross { font: 2rem var(--font-display); color: var(--silver-light); text-shadow: 0 0 25px #dbeaff70; }
.journey-number {
  display: block;
  font: italic clamp(7rem, 22vw, 10rem)/1.15 var(--font-display);
  letter-spacing: -.07em;
  padding-right: .07em;
  background: linear-gradient(115deg, #7d8b9e 5%, #f4f5f4 26%, #a4b1c1 44%, #fff 53%, #8796ab 75%, #e5e8ec 95%);
  color: transparent; background-clip: text;
  filter: drop-shadow(0 5px 8px #0005);
}
.journey-intro h2 { margin: .5rem 0 1rem; max-width: 34rem; font-size: clamp(1.45rem, 4.6vw, 2.5rem); line-height: 1.6; text-wrap: balance; }
html[lang="en"] .journey-intro h2, html[lang="en"] .journey-heading h3 { font-family: var(--font-display); font-weight: 400; }
.journey-chapters { width: min(90%, 60rem); margin-inline: auto; }
.journey-chapter { margin-block: 0 clamp(4rem, 9vw, 7rem); }
.journey-chapter:last-child { margin-bottom: 0; }
.journey-heading { text-align: center; margin: 0 auto 2rem; max-width: 43rem; }
.journey-heading h3 { font-size: clamp(1.3rem, 3.8vw, 2.25rem); line-height: 1.6; margin: 1.25rem 0 0; text-wrap: balance; overflow-wrap: break-word; }
.journey-rule { display: block; position: relative; width: 8rem; height: 1px; margin: auto; background: linear-gradient(90deg, transparent, var(--silver), transparent); }
.journey-rule::after { content: ''; position: absolute; width: 5px; height: 5px; background: #dce2ec; left: calc(50% - 2.5px); top: -2px; transform: rotate(45deg); box-shadow: 0 0 14px #c8d6ef50; }
.journey-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); align-items: center; }
.journey-frame {
  position: relative; min-width: 0; width: 100%; margin: 0; padding: clamp(5px, .8vw, 9px);
  background: linear-gradient(135deg, #b4becd 0%, #f1f1ed 21%, #748297 48%, #d9dfe7 72%, #808c9d);
  border: 1px solid #f1f4f04a;
  box-shadow: 0 15px 32px #0005, 0 2px 4px #0005;
}
.journey-frame::before { content: ''; position: absolute; inset: 3px; border: 1px solid #12253b65; pointer-events: none; }
.journey-frame img { display: block; width: 100%; height: auto; object-fit: contain; background: var(--navy); }
.journey-feature { grid-column: 1 / -1; z-index: 1; }
.journey-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid transparent; }
.journey-frame.journey-arrived::after { animation: journey-silver-edge 2.5s ease-out both; }
.journey-image-error { margin: 1rem; font-size: 1rem; text-align: center; color: var(--navy); }
@keyframes journey-silver-edge { 0%, 100% { border-color: transparent; } 40% { border-color: #fff9; box-shadow: 0 0 18px #cfdeef28; } }
@media (min-width: 600px) {
  .journey-collage > .journey-frame:nth-child(3) { margin-top: 2.5rem; }
  .journey-usa .journey-frame:last-child { grid-column: 1 / -1; width: 80%; justify-self: center; }
  .journey-service .journey-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-service .journey-feature { grid-column: 1; grid-row: span 2; }
  .journey-service .journey-frame:nth-child(3) { margin-top: 0; }
}
@media (max-width: 599px) {
  .journey-frame { grid-column: 1 / -1; }
  .journey-collage { gap: 1rem; }
  .journey-intro { min-height: 24rem; }
  .journey-heading { margin-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .photographic-journey *, .photographic-journey *::before, .photographic-journey *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
