/* Topic-specific guide openings at the same responsive scale as the homepage. */
.guide-opening.journey-hero {
  --journey-header-height: 86px;
  --journey-progress: 0;
  position: relative;
  isolation: isolate;
  min-height: var(--guide-hero-height);
  padding: 0;
  border: 0;
  overflow: hidden;
  overflow: clip;
  background: #000;
  color: #fff;
}
.journey-hero .container.journey-hero-inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: inherit;
  padding-block: var(--guide-inner-padding);
}
.journey-hero .guide-breadcrumb {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 11px;
  color: #e7edf2;
  opacity: calc(1 - var(--journey-progress));
}
.journey-hero .guide-breadcrumb a { color: #fff; text-decoration-color: #ffffff70; }
.journey-hero .guide-breadcrumb a:hover { text-decoration-color: #fff; }
.journey-hero .guide-breadcrumb svg { color: inherit; }
.journey-hero .journey-hero-media,
.journey-hero .journey-hero-shade { position: absolute; inset: 0; pointer-events: none; }
.journey-hero .journey-hero-media { z-index: -3; overflow: hidden; }
.journey-hero .journey-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: calc(1 - var(--journey-progress) * .96);
  transform: scale(calc(1 + var(--journey-progress) * .06));
}
.journey-hero .journey-hero-shade { z-index: -2; }
.journey-hero .journey-hero-body { display: flex; min-width: 0; align-items: center; padding-block: var(--guide-copy-padding); }
.journey-hero .journey-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  opacity: calc(1 - var(--journey-progress) * 1.15);
  transform: translateY(calc(var(--journey-progress) * -42px));
}
.guide-opening.journey-hero h1 {
  max-width: none;
  margin: 0 0 25px;
  color: #fff;
  font-family: inherit;
  font-size: var(--guide-title-size);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.journey-hero .journey-title-main,
.journey-hero .journey-title-accent { display: block; }
.journey-hero .journey-hero-description {
  max-width: 47ch;
  margin: 0;
  font-size: var(--guide-description-size);
  line-height: 1.85;
  color: #edf3f7;
  text-wrap: pretty;
}
.journey-hero a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.guide-opening.journey-hero:focus-within { --journey-progress: 0 !important; }

/* Foreign: a cinematic photographic atlas, with left-aligned editorial typography. */
.journey-hero--foreign .journey-hero-media img { object-position: center 43%; }
.journey-hero--foreign .journey-hero-shade {
  background: linear-gradient(0deg, #000c, #0004 42%, #0007), linear-gradient(90deg, #0005, #0008 48%, #0005);
}
.journey-hero--foreign .journey-hero-body { justify-content: flex-start; text-align: left; padding-block: var(--guide-copy-padding); }
.journey-hero--foreign .journey-hero-copy { max-width: 760px; }
.guide-opening.journey-hero--foreign h1 { font-size: var(--guide-title-size); margin-bottom: 28px; }
.journey-hero--foreign .journey-title-accent {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.07em;
  line-height: 1.08;
}
.journey-hero--foreign .journey-hero-description { margin-inline: 0; max-width: 510px; }
.journey-foreign-frame {
  position: absolute;
  z-index: -1;
  inset: 82px 7% 85px 62%;
  border-inline: 1px solid #ffffff50;
  opacity: calc(.8 - var(--journey-progress) * .8);
  pointer-events: none;
}
.journey-foreign-frame::before,
.journey-foreign-frame::after { content: ''; position: absolute; left: -8px; right: -8px; height: 1px; background: #ffffff35; }
.journey-foreign-frame::before { top: 0; }
.journey-foreign-frame::after { bottom: 0; }
.journey-foreign-frame i { position: absolute; width: 70px; height: 70px; border: 1px solid #ffffff60; border-radius: 50%; }
.journey-foreign-frame i:first-child { left: -35px; top: -35px; border-right-color: #0072ce; transform: rotate(-30deg); }
.journey-foreign-frame i:last-child { right: -35px; bottom: -35px; border-left-color: #0072ce; transform: rotate(-30deg); }

/* Europe: a bright geographical cover with a globe and fine orbital lines. */
.guide-opening.journey-hero--eu { background: #fff; color: #000; }
.journey-hero--eu .guide-breadcrumb,
.journey-hero--eu .guide-breadcrumb a { color: #385269; text-decoration-color: #38526960; }
.journey-hero--eu .guide-breadcrumb a:hover { color: #0072ce; text-decoration-color: #0072ce; }
.journey-hero--eu .journey-hero-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; }
.guide-opening.journey-hero--eu h1 { color: #000; font-size: var(--guide-title-size); }
.journey-hero--eu .journey-title-accent { color: #0072ce; }
.journey-hero--eu .journey-hero-description { color: #42566a; max-width: 36ch; }
.journey-eu-world { position: relative; min-width: 0; height: clamp(240px, 27vw, 360px); align-self: center; }
.journey-hero--eu .journey-hero-media { z-index: 0; inset: 14% -5%; border-radius: 50%; overflow: hidden; }
.journey-hero--eu .journey-hero-media img { object-fit: contain; transform: translateY(calc(var(--journey-progress) * 25px)); }
.journey-eu-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #0072ce38;
  border-radius: 50%;
  transform: rotate(-24deg);
  opacity: calc(1 - var(--journey-progress));
}
.journey-eu-orbit::before { content: ''; position: absolute; inset: 7%; border: 1px solid #0072ce17; border-radius: 50%; }
.journey-eu-orbit::after { content: ''; position: absolute; top: 13%; left: 13%; width: 12px; height: 12px; background: #0072ce; border: 4px solid #fff; box-shadow: 0 0 0 1px #0072ce; border-radius: 50%; }
.journey-eu-grid {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 56%;
  opacity: calc(.7 - var(--journey-progress) * .7);
  background-image: linear-gradient(#0072ce0b 1px, transparent 1px), linear-gradient(90deg, #0072ce0b 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
}
.journey-hero--eu a:focus-visible { outline-color: #0072ce; }

/* Offshore: an ocean panorama with a quiet nautical compass. */
.journey-hero--offshore .journey-hero-media img { object-position: 59% center; }
.journey-hero--offshore .journey-hero-shade {
  background: linear-gradient(90deg, #00121dd9, #00121d60 60%, #00121d30), linear-gradient(0deg, #000c, #0000 65%, #0005);
}
.journey-hero--offshore .journey-hero-body { align-items: center; padding-block: var(--guide-copy-padding); }
.journey-hero--offshore .journey-hero-copy { max-width: 740px; }
.guide-opening.journey-hero--offshore h1 { font-size: var(--guide-title-size); }
.journey-hero--offshore .journey-title-accent { color: #fff; }
.journey-hero--offshore .journey-title-main { color: #fff; }
.journey-hero--offshore .journey-hero-description { max-width: 46ch; }
.journey-offshore-compass {
  position: absolute;
  z-index: -1;
  right: 10%;
  top: 23%;
  width: clamp(190px, 22vw, 330px);
  aspect-ratio: 1;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  opacity: calc(.85 - var(--journey-progress) * .85);
  transform: rotate(calc(var(--journey-progress) * 12deg));
  pointer-events: none;
}
.journey-offshore-compass::before { content: ''; position: absolute; inset: 15px; border: 1px dashed #ffffff45; border-radius: 50%; }
.journey-offshore-compass::after { content: ''; position: absolute; inset: 27%; border: 1px solid #ffffff45; border-radius: 50%; }
.journey-offshore-compass span { position: absolute; left: calc(50% - 10px); top: -33px; width: 20px; text-align: center; font-size: 12px; color: #fff; letter-spacing: .1em; }
.journey-offshore-compass i { position: absolute; top: -10%; bottom: -10%; left: 50%; width: 1px; background: linear-gradient(#fff0, #fff6 10%, #fff6 30%, #fff0 45%, #fff0 55%, #fff6 70%, #fff6 90%, #fff0); }
.journey-offshore-compass i::after { content: ''; position: absolute; inset: 0; background: inherit; transform: rotate(90deg); }

@media (max-width: 1050px) {
  .journey-hero--eu .journey-hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .guide-opening.journey-hero--eu h1 { font-size: var(--guide-title-size); }
  .journey-offshore-compass { right: 7%; top: 19%; width: 220px; }
}
@media (max-width: 850px) {
  .guide-opening.journey-hero { --journey-header-height: 72px; min-height: var(--guide-hero-height); }
  .journey-hero .container.journey-hero-inner { padding-block: var(--guide-inner-padding); }
  .journey-hero .journey-hero-description { font-size: var(--guide-description-size); }
  .journey-hero--eu .journey-hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 8px; }
  .guide-opening.journey-hero--eu h1 { font-size: var(--guide-title-size); }
  .journey-eu-world { margin-right: -15%; }
  .journey-offshore-compass { width: 180px; top: 17%; right: 8%; }
  .journey-hero--offshore .journey-hero-copy { max-width: 86%; }
  .journey-foreign-frame { display: none; }
}
@media (max-width: 760px) {
  .journey-hero--eu .journey-hero-body { grid-template-columns: 1fr; gap: 2px; align-content: center; padding-block: var(--guide-copy-padding); }
  .guide-opening.journey-hero--eu h1 { font-size: var(--guide-title-size); line-height: 1.07; }
  .journey-hero--eu .journey-hero-description { max-width: 36ch; }
  /* Center the full map and reserve space for its 25px scroll movement. */
  .journey-eu-world { width: min(100%, 360px); height: auto; margin: 24px auto 25px; aspect-ratio: 1.5; }
  .journey-hero--eu .journey-hero-media { inset: 0; border-radius: 0; overflow: visible; }
  .journey-eu-orbit { inset: 4% 4% 0; }
  .journey-eu-grid { inset: 40% 0 0; }
}
@media (max-width: 600px) {
  .guide-opening.journey-hero { min-height: var(--guide-hero-height); }
  .journey-hero .container.journey-hero-inner { padding-block: var(--guide-inner-padding); }
  .journey-hero .guide-breadcrumb { font-size: 10px; gap: 6px 9px; }
  .journey-hero .journey-hero-body { padding-block: var(--guide-copy-padding); }
  .guide-opening.journey-hero h1 { font-size: var(--guide-title-size); margin-bottom: 22px; line-height: 1.07; }
  .journey-hero .journey-hero-description { font-size: var(--guide-description-size); line-height: 1.85; max-width: 37ch; }
  .journey-hero--foreign .journey-hero-body { padding-inline: 0; }
  .journey-hero--foreign .journey-hero-shade { background: linear-gradient(0deg, #000d, #0005 45%, #0007), linear-gradient(90deg, #0004, #0007, #0004); }
  .journey-foreign-frame { inset: 82px 5% 105px; }
  .journey-foreign-frame i { width: 40px; height: 40px; }
  .journey-foreign-frame i:first-child { top: -20px; left: -20px; }
  .journey-foreign-frame i:last-child { bottom: -20px; right: -20px; }
  .journey-hero--offshore .journey-hero-body { align-items: center; padding-block: var(--guide-copy-padding); }
  .journey-hero--offshore .journey-hero-copy { max-width: 100%; }
  .journey-hero--offshore .journey-hero-shade { background: linear-gradient(0deg, #00121def, #00121d5c 75%, #0005), linear-gradient(90deg, #00121d88, transparent); }
  .journey-hero--offshore .journey-hero-media img { object-position: 63% center; }
  .journey-offshore-compass { width: 140px; top: 16%; right: 12%; border-color: #ffffff50; }
  .journey-offshore-compass span { font-size: 10px; top: -25px; }
}
@media (max-height: 700px) and (min-width: 601px) {
  .guide-opening.journey-hero { min-height: var(--guide-hero-height); }
  .journey-hero .journey-hero-body { padding-block: var(--guide-copy-padding); }
  .guide-opening.journey-hero h1 { font-size: var(--guide-title-size); }
  .journey-hero--offshore .journey-hero-body { padding-top: var(--guide-copy-padding); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-opening.journey-hero { --journey-progress: 0 !important; }
  .journey-hero .journey-hero-media img,
  .journey-hero .journey-hero-copy,
  .journey-offshore-compass { transform: none; }
}
