.research-welcome {
  position:relative; isolation:isolate; overflow:hidden;
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1.2rem 2rem; margin-block:2rem;
  padding:clamp(1.25rem,4vw,3rem); border:1px solid var(--line); border-radius:1.3rem;
  background:var(--ocean-banner);
  color:var(--on-deep); box-shadow:var(--depth);
}
.research-welcome::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.20;
  background:url("illustrations/china-flag.svg") right top / 50% auto no-repeat,
    url("illustrations/usa-flag.svg") left top / 50% auto no-repeat;
  mask-image:linear-gradient(#000,transparent 90%);
}
.research-welcome h1 { font:750 clamp(1.65rem,4vw,3.2rem)/1.35 var(--font-display); margin:0 0 .65rem }
.research-welcome p { color:#c4e3f6; margin-block:0 .75rem }
.research-welcome .welcome-course { font-size:.87rem; color:#9ee9ff; margin-block-end:.4rem }
.research-welcome .welcome-preview { margin:0 }
.welcome-entry {
  grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:.75rem 1rem; border-block-start:1px solid #6398b2; padding-block-start:.75rem;
}
.welcome-entry #home-welcome { margin:0 }
.welcome-entry .journey-menu { margin-inline-start:auto }
.welcome-brief { grid-column:1 / -1; padding:.15rem .8rem; border:1px solid #52809a; border-radius:.65rem; background:#0c314b }
@media(max-width:650px) {
  .welcome-entry .journey-menu { margin-inline-start:0 }
}
.welcome-brief summary { display:list-item; cursor:pointer; min-height:44px; line-height:44px; color:#aeefff; font-weight:700 }
.welcome-brief ul { padding-inline-start:1.2rem; margin-block:.25rem .6rem }
.research-welcome a { color:#9ee9ff }
.research-welcome .button { background:#8ceaff; color:#062235 }
.research-welcome .button:hover { background:#c4f4ff }
.research-welcome :focus-visible { outline-color:#9ee9ff }
.research-welcome .atlas-guide { --guide-width:10rem; border:1px solid #6398b2 }
.journey-menu { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem }
.journey-menu .button,.journey-secondary { min-height:48px; display:inline-flex; align-items:center; justify-content:center; margin:0; padding:.45rem 1.05rem }
.journey-secondary { border:1px solid #6398b2; border-radius:.65rem; background:#0c314b; text-decoration:none }
.journey-secondary:hover { background:#164a67 }
.ocean-journey {
  position:relative;
  padding:clamp(.8rem,3vw,1.8rem); border:1px solid var(--line); border-radius:1.2rem;
  background:repeating-radial-gradient(ellipse at 10% 85%,transparent 0 25px,var(--sea-glow) 26px 27px,transparent 28px 47px),var(--surface);
}
#journey-title {
  margin-block:.3rem clamp(2.25rem,5vw,3.75rem);
  text-align:center;
  font:750 clamp(1.85rem,4vw,3rem)/1.3 var(--font-display);
}
#journey-title::after {
  content:"";
  display:block;
  width:2.75rem;
  height:.2rem;
  margin:.65rem auto 0;
  border-radius:1rem;
  background:var(--action);
}
.journey-map { position:relative }
.journey-main h3 { margin:0 0 .75rem; text-align:center; color:var(--action); font-size:1.15rem }
.ocean-journey ol { list-style:none; padding:0; margin:0 }
.ocean-journey li { position:relative; min-height:5.4rem; display:grid; place-items:center; --offset:1.45rem }
.ocean-journey li:nth-child(odd) { --offset:-1.45rem }
.ocean-journey li:not(:last-child)::after {
  content:""; position:absolute; left:50%; top:50%; height:100%; border-inline-start:3px dashed var(--edge);
  transform:skewX(28deg); pointer-events:none;
}
.ocean-journey li:nth-child(even)::after { transform:skewX(-28deg) }
.journey-main a {
  position:relative; z-index:1; display:grid; place-items:center; text-decoration:none;
  width:3.65rem; height:3.65rem; margin-left:calc(2 * var(--offset)); border-radius:50%;
}
.route-buoy {
  display:grid; place-items:center; width:100%; height:100%; border-radius:50%;
  background:var(--raised); color:var(--action); border:2px solid var(--edge);
  box-shadow:0 .25rem 0 var(--edge); font-size:1.4rem; line-height:1;
}
.route-buoy svg { display:block; width:1.8rem; height:1.8rem; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round }
.route-completion { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
.route-label {
  position:absolute; left:calc(100% + .6rem); width:max-content; max-width:6rem;
  color:var(--text); font-weight:700; font-size:.88rem; line-height:1.4;
}
.ocean-journey li:nth-child(odd) .route-label { left:auto; right:calc(100% + .6rem); text-align:left }
.ocean-journey a:hover { text-decoration:none }
.ocean-journey a:hover .route-label { color:var(--link-hover) }
.ocean-journey a:hover .route-buoy { background:var(--active); border-color:var(--action) }
.ocean-journey a[aria-current] .route-buoy {
  color:var(--on-action); background:var(--primary); border-color:var(--primary);
  box-shadow:0 0 0 4px var(--surface),0 0 0 6px var(--action);
}
.ocean-journey a[data-complete] .route-buoy {
  background:light-dark(#167047,#7ce3ac); color:light-dark(#fff,#083519);
  border-color:light-dark(#167047,#7ce3ac);
}
.ocean-journey a[data-complete]:hover .route-buoy { background:light-dark(#105436,#9bf1c2) }
.journey-extras { display:grid; justify-items:center; gap:.7rem }
.journey-island {
  position:relative; isolation:isolate; display:grid; align-content:center; gap:.65rem;
  box-sizing:border-box; width:min(100%,16rem); padding:2.4rem 1.7rem;
}
.journey-island::before,.journey-island::after {
  content:""; position:absolute; inset:0; z-index:-1; border-radius:var(--coast); pointer-events:none;
  transition:filter .2s ease;
}
.journey-island::before { background:light-dark(#64a8a4,#527c83) }
.journey-island::after {
  inset:4px;
  background:radial-gradient(ellipse at 35% 25%,light-dark(#e1f6e8,#276059),transparent 70%),
    linear-gradient(145deg,light-dark(#d8edf4,#244657),light-dark(#9ed7c5,#15584f));
}
.journey-main {
  --coast:42% 56% 49% 46% / 15% 21% 19% 24%;
  width:min(100%,27rem); margin-inline:auto; padding:3rem .65rem 3.75rem; gap:0;
}
.journey-island--right {
  --coast:56% 41% 53% 38% / 36% 48% 37% 57%;
}
.journey-island--left {
  --coast:41% 55% 40% 58% / 53% 33% 58% 37%;
}
.journey-extras .journey-island { width:min(100%,20rem); min-height:16.5rem; padding-block:3.15rem; gap:1.1rem }
.journey-extras .journey-island[data-drift] { min-height:0; align-self:start }
.journey-extras .journey-island::before {
  left:var(--shore-left,0px); right:var(--shore-right,0px);
}
.journey-extras .journey-island::after {
  left:calc(var(--shore-left,0px) + 4px); right:calc(var(--shore-right,0px) + 4px);
}
.journey-island:not(.journey-island--center):not(:hover):not(:focus-within)::before,
.journey-island:not(.journey-island--center):not(:hover):not(:focus-within)::after,
.journey-island:not(.journey-island--center):not(:hover):not(:focus-within) .route-buoy { filter:grayscale(1) }
.journey-extras a { display:flex; align-items:center; gap:.55rem; min-height:44px; text-decoration:none }
.journey-extras [data-drift] a {
  justify-self:left; width:max-content; max-width:100%;
  margin-block-start:var(--drift-gap); transform:translateX(var(--drift-x,0px));
}
.journey-extras .route-buoy { width:2.75rem; height:auto; aspect-ratio:1; flex:none; transition:filter .2s ease }
.journey-extras .route-buoy svg { width:52%; height:52% }
.journey-extras .route-label { position:static; width:auto; min-width:0; max-width:none; font-size:clamp(.78rem,1.4vw,.95rem) }
@media(min-width:900px) {
  .journey-main { width:min(42%,27rem) }
  .journey-extras .journey-island { position:absolute; width:27% }
  .journey-island--right { right:1%; top:var(--drift-top,13%) }
  .journey-island--left { left:1%; top:var(--drift-top,40%) }
}
@media(max-width:899px) {
  .journey-extras { grid-template-columns:repeat(2,minmax(0,1fr)); width:min(100%,41rem); margin:1rem auto 0 }
  .journey-extras .journey-island { padding-inline:clamp(.7rem,3vw,1.65rem) }
  .journey-extras .journey-island[data-drift] { margin-block-start:var(--drift-top,0px) }
  .journey-extras .route-buoy { width:clamp(2rem,6vw,2.75rem) }
}
@media(prefers-reduced-motion:reduce) {
  .journey-island::before,.journey-island::after,.journey-extras .route-buoy { transition:none }
}
.research-map { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-block:1.5rem }
.research-stop { position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:start; justify-content:end; min-height:10rem; padding:1.3rem; border:1px solid var(--line); border-radius:1rem; background:var(--surface); color:var(--text); text-decoration:none }
.research-stop:hover { border-color:var(--action); background:var(--raised); box-shadow:0 8px 24px var(--sea-glow); text-decoration:none }
.research-stop:hover h2 { color:var(--action); text-decoration:none }
.research-stop h2 { margin:0 0 .35rem }
.research-stop p { margin:0; font-size:.9rem; color:var(--muted) }
.stop-art { display:block; position:absolute; inset:0; opacity:.3; background-size:cover; background-position:center; pointer-events:none }
.research-stop h2,.research-stop p { position:relative }
.stop-symbol { font-size:2rem; color:var(--mint); line-height:1; margin-block-end:.8rem }
.research-continue { padding:1rem 1.3rem; border:1px solid var(--line); border-radius:1rem; background:var(--raised) }
.continue-links { display:flex; flex-wrap:wrap; gap:.7rem 1.5rem }
.research-home [hidden] { display:none !important }
.research-home .metric-card { background:var(--surface) }
@media(max-width:800px) { .research-map { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:520px) {
  .research-map { grid-template-columns:1fr }
  .research-welcome { grid-template-columns:1fr; gap:1rem }
  .research-welcome .atlas-guide { --guide-width:6rem; justify-self:center }
  .research-welcome .button { margin-block-end:.6rem }
}

.progress-checklist { padding:0; list-style:none; display:grid; gap:.5rem }
.progress-checklist li { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.25rem 1rem; padding:.65rem; border-bottom:1px solid var(--line) }
.progress-checklist span { color:var(--muted); font-size:.85rem }
.discovery-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1rem }
.discovery-grid details { border:1px solid var(--line); border-radius:.7rem; padding:.85rem }
.discovery-grid summary { cursor:pointer; min-height:44px }
.discovery-grid p { color:var(--muted) }
