.hero-scroll.has-home-atlas { height: 235svh; min-height: 0; }
.hero-scroll.has-home-atlas .banner {
  background: radial-gradient(ellipse at 72% 36%,#203d4a 0%,#102631 38%,#0b1823 76%);
  min-height: 685px;
}
.has-home-atlas .banner > #organism,
.has-home-atlas .banner > #bannerParticles,
.has-home-atlas .banner > .fallback-field,
.has-home-atlas .banner > .grain,
.has-home-atlas .hero-grid > .system-view { display: none !important; }
.has-home-atlas .hero-grid {
  grid-template-columns: minmax(0,.76fr) minmax(0,1.36fr);
  gap: clamp(18px,3.4vw,58px);
  align-items: center;
  width: min(93%,1500px);
  padding: 34px 0 16px;
  min-height: 0;
}
.has-home-atlas .hero-copy { color: #f2faff; width: auto; min-width: 0; }
.has-home-atlas .hero-copy h1 { color: #f2faff; font-size: clamp(41px,4.6vw,80px); line-height: 1.07; }
.has-home-atlas .hero-copy .headline-lead { color: #f2faff; }
.has-home-atlas .hero-copy .headline-accent {
  color: #9deadb;
  -webkit-text-fill-color: #9deadb;
  background: none;
}
.has-home-atlas .hero-copy .eyebrow,
.has-home-atlas .hero-copy .hero-intro,
.has-home-atlas .hero-copy .stage-signal,
.has-home-atlas .hero-copy .signal-title,
.has-home-atlas .hero-copy .signal-path,
.has-home-atlas .hero-copy .signal-index { color: #c5dce2; }
.has-home-atlas .hero-copy .stage-signal { display: none; }
.has-home-atlas .hero-copy .hero-intro { max-width: 32em; line-height: 1.7; }
.has-home-atlas .hero-copy .hero-actions { row-gap: 8px; }
.has-home-atlas .hero-copy .button-primary,
.has-home-atlas .hero-copy .button-quiet {
  color: #d9eaf0;
  background: #19323e;
  border-color: #52747f;
}
.has-home-atlas .hero-copy .route-pulses a { color: #c2d7df; background: transparent; border-color: transparent; }
.has-home-atlas .hero-copy .button-primary:hover,
.has-home-atlas .hero-copy .button-quiet:hover,
.has-home-atlas .hero-copy .route-pulses a:hover { color: #fff; background: #294c58; }
.has-home-atlas .workflow-dock {
  width: min(93%,1500px);
  color: #d7ebee;
  background: #112b36;
  border-color: #466973;
  box-shadow: none;
  margin-bottom: 16px;
}
.has-home-atlas .workflow-dock .dock-step { color: #dceef1; border-color: #3b5e6b; }
.has-home-atlas .workflow-dock .dock-step small { color: #adcad4; }
.has-home-atlas .workflow-dock .dock-step b { color: #edfafa; }
.has-home-atlas .workflow-dock .dock-step.is-active {
  background: #254a57;
  border-top-color: #9deadb;
}
.has-home-atlas .workflow-dock .dock-label { color: #c3dde5; }
.home-atlas {
  min-width: 0;
  min-height: 350px;
  height: min(63svh,645px);
  position: relative;
  isolation: isolate;
  border: 1px solid #507783;
  border-radius: 14px;
  overflow: hidden;
  color: #eefafa;
  background:
    radial-gradient(ellipse at 53% 37%,#2e505d 0%,#18323e 52%,#0d222d 90%);
  box-shadow: 0 20px 65px #05121b91;
}
.home-atlas [hidden] { display: none !important; }
.atlas-viewport,.atlas-canvas,.atlas-poster,.atlas-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-viewport { z-index: 0; }
.atlas-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,#0d222b83,transparent 16%,transparent 63%,#0c202bd9 100%);
}
.atlas-poster { display: block; object-fit: contain; }
.atlas-canvas { display: none !important; cursor: grab; touch-action: none; }
.atlas-canvas:active { cursor: grabbing; }
.home-atlas[data-atlas-state="ready"] .atlas-canvas { display: block !important; }
.home-atlas[data-atlas-state="ready"] .atlas-poster { visibility: hidden; }
.atlas-top {
  position: absolute;
  z-index: 2;
  left: 17px;
  right: 17px;
  top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 10px;
  color: #d5e8eb;
  font: 680 12px/1.3 "Microsoft YaHei UI",system-ui,sans-serif;
}
.atlas-top > span { letter-spacing: .06em; }
.atlas-top > span::before {
  display: inline-block;
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: #a4f1e0;
}
.atlas-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; pointer-events: auto; }
.atlas-tools button,.atlas-mode button,.atlas-pin {
  color: #e7f4f6;
  border: 1px solid #688a94;
  border-radius: 6px;
  background: #15313deb;
}
.atlas-tools button {
  font: inherit;
  padding: 6px 9px;
  min-height: 34px;
  cursor: pointer;
}
.atlas-tools button:hover,.atlas-mode button:hover { color: #fff; background: #2d5863; }
.atlas-pins { z-index: 1; pointer-events: none; }
.atlas-pins button {
  position: absolute;
  transform: translate(-50%,-65%);
  padding: 6px 8px;
  min-height: 32px;
  border: 1px solid #7abbc3a8;
  border-radius: 5px;
  background: #102e39e8;
  color: #edfafa;
  pointer-events: auto;
  white-space: nowrap;
  font: 650 11px/1.25 "Microsoft YaHei UI",system-ui,sans-serif;
  box-shadow: 0 3px 10px #061a2354;
  cursor: pointer;
}
.atlas-pins button[aria-pressed="true"],.atlas-pins button:hover {
  background: #b5f0e4;
  color: #153839;
  border-color: #b5f0e4;
  z-index: 1;
}
.atlas-card {
  box-sizing: border-box;
  margin-block: 12px 15px;
  padding: 13px 14px;
  min-width: 0;
  border: 1px solid #567780;
  border-inline-start: 3px solid #9deadb;
  border-radius: 9px;
  background: #142d38;
  display: grid;
  gap: 11px;
  scroll-margin-block: 12px;
}
.atlas-study .atlas-focus {
  display: flex;
  gap: 7px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 0 5px;
  color: #a5eadc;
  font-size: 12px;
  font-weight: 720;
}
.atlas-focus-stage {
  padding-inline-start: 7px;
  border-inline-start: 1px solid #6b969d;
  color: #d8eaed;
}
.atlas-study h2 {
  margin: 0;
  color: #f1fcff;
  font-size: clamp(17px,1.62vw,26px);
  line-height: 1.2;
  font-weight: 730;
}
.atlas-study .atlas-description { color: #c6dfe4; font-size: clamp(12px,1.02vw,15px); line-height: 1.45; margin: 5px 0 0; }
.atlas-destinations { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.atlas-mode { display: inline-flex; gap: 3px; }
.atlas-mode button {
  font: 660 12px/1.3 "Microsoft YaHei UI",system-ui,sans-serif;
  min-height: 44px;
  padding: 5px 9px;
  cursor: pointer;
}
.atlas-mode button[aria-pressed="true"] { color: #d6fff6; background: #2b5260; border-color: #98cecb; }
.has-home-atlas .atlas-route {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 6px;
  color: #0d2c33;
  background: #a6efde;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.has-home-atlas .atlas-route:hover { color: #0d2c33; background: #d7faf1; }
.atlas-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  padding-block-start: 7px;
  border-top: 1px solid #3a5c66;
}
.atlas-related[hidden] { display: none; }
.atlas-related > span { color: #c4dfe5; font-size: 12px; font-weight: 690; }
.atlas-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.has-home-atlas .atlas-related a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #557986;
  border-radius: 5px;
  background: #183541;
  color: #e1f1f4;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
}
.has-home-atlas .atlas-related a:hover { color: #fff; background: #2d5863; border-color: #98cecb; }
.atlas-scene-caption { position: absolute; left: 17px; bottom: 6px; color: #a5c1c9; font-size: 9px; pointer-events: none; }
.home-atlas:not([data-atlas-state="ready"]) :is(.atlas-pins,.atlas-drag,[data-atlas-reset]) { visibility: hidden; }
.home-atlas button:focus-visible,.atlas-card a:focus-visible,.atlas-card button:focus-visible,
.atlas-explore-trigger:focus-visible,.atlas-collapse:focus-visible {
  outline: 2px solid #b9f6e6;
  outline-offset: 3px;
}

@media (min-width: 761px) {
  .has-home-atlas .hero-copy .hero-actions { gap: 6px 10px; margin-top: 12px; }
  .has-home-atlas .hero-copy .hero-actions .button { min-width: 0; min-height: 44px; padding-inline: 13px; gap: 14px; }
  .has-home-atlas .hero-copy .route-pulses { margin-top: 11px; }
}
@media (max-width: 1000px) {
  .has-home-atlas .hero-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.23fr); }
  .has-home-atlas .hero-copy h1 { font-size: clamp(34px,5vw,58px); }
  .atlas-drag { display: none; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .has-home-atlas .hero-copy h1 { font-size: clamp(34px,4vw,58px); }
  .has-home-atlas .hero-copy .hero-intro { margin-block: 10px; }
  .has-home-atlas .hero-copy .hero-actions,.has-home-atlas .hero-copy .route-pulses { margin-top: 9px; }
  .atlas-card { margin-block: 9px 11px; padding: 10px 12px; }
}
@media (max-width: 760px) {
  .hero-scroll.has-home-atlas,
  .hero-scroll.has-home-atlas .banner { height: auto; min-height: 0; }
  .hero-scroll.has-home-atlas .banner { position: relative; }
  .hero-scroll.has-home-atlas .hero-grid {
    position: relative;
    width: calc(100% - 32px);
    padding: 5px 0 12px;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .has-home-atlas .hero-copy { width: 100%; max-width: none; }
  .has-home-atlas .hero-copy h1 { margin-top: 6px; font-size: clamp(33px,9vw,59px); }
  .has-home-atlas .hero-copy .hero-intro { margin-block: 8px; }
  .has-home-atlas .hero-copy .hero-actions { display: flex; margin-top: 8px; }
  .has-home-atlas .hero-copy .route-pulses { display: flex; flex-wrap: wrap; margin-top: 7px; }
  .home-atlas { height: clamp(340px,99vw,510px); min-height: 0; }
  .atlas-canvas { touch-action: pan-y !important; }
  .atlas-card { margin-block: 10px; padding: 10px 11px; }
  .atlas-top { left: 10px; right: 10px; top: 7px; }
  .atlas-study h2 { font-size: 17px; }
  .atlas-scene-caption { font-size: 8px; bottom: 4px; left: 10px; }
  .atlas-pins button { font-size: 9px; padding: 4px 5px; min-height: 25px; }
  .has-home-atlas .workflow-dock { width: calc(100% - 32px); margin-inline: auto; }
}

.atlas-explore-trigger,.atlas-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #80bdb9;
  border-radius: 7px;
  background: #214753;
  color: #e8fff9;
  font: 700 13px/1.25 "Microsoft YaHei UI",system-ui,sans-serif;
  cursor: pointer;
}
.atlas-explore-trigger:hover,.atlas-collapse:hover { background: #32616b; }
.atlas-tools .atlas-explore-trigger {
  min-height: 44px;
  background: #a6efde;
  border-color: #a6efde;
  color: #0d2c33;
}
.atlas-tools .atlas-explore-trigger:hover { background: #d7faf1; color: #0d2c33; }
.atlas-home-slot { max-width: 100%; visibility: hidden; pointer-events: none; }
.atlas-home-slot.atlas-dock-slot { justify-self: center; }
.atlas-exploring { overflow: hidden; }
.atlas-explore[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(10px,1.35vw,22px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 11px;
  overflow: hidden;
  color: #ebf8fa;
  background: #0b1c26;
  border: 0;
}
.atlas-explore::backdrop { background: #071621db; }
.atlas-explore[data-closing] { pointer-events: none; }
.atlas-explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.atlas-explore-header h2 { margin: 0; color: #effafc; font-size: clamp(17px,1.6vw,24px); line-height: 1.25; }
.atlas-collapse { flex: 0 0 auto; }
.atlas-explore-content {
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(280px,27vw,435px);
  gap: 12px;
  min-height: 0;
}
.atlas-explore .home-atlas { height: 100%; min-height: 0; box-shadow: none; }
.atlas-explore .atlas-explore-trigger { display: none; }
.atlas-explore .atlas-card { margin: 0; align-self: start; }
.atlas-explore .workflow-dock { width: 100%; margin: 0; }

@media (max-width: 760px) {
  .atlas-explore[open] { gap: 8px; }
  .atlas-explore-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .atlas-explore .home-atlas { flex: 0 0 auto; height: clamp(310px,55dvh,560px); }
  .atlas-explore .atlas-card { width: 100%; box-sizing: border-box; }
}

.hero-scroll.has-home-atlas .hero-copy {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #6c97a1 transparent;
}
.hero-scroll.has-home-atlas .hero-grid > .home-atlas { max-height: 100%; }
.has-home-atlas .dock-step:focus-visible {
  outline: 2px solid #b9f6e6;
  outline-offset: -4px;
  z-index: 1;
}

.atlas-explore .atlas-card {
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #6c97a1 transparent;
}

/* Let the page scroll naturally when there is too little room for a pinned hero. */
@media (max-width: 1000px), (max-height: 820px) {
  .hero-scroll.has-home-atlas,
  .hero-scroll.has-home-atlas .banner { height: auto; min-height: 0; }
  .hero-scroll.has-home-atlas .banner {
    position: relative;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .hero-scroll.has-home-atlas .hero-copy { max-height: none; overflow: visible; }
  .hero-scroll.has-home-atlas .hero-grid > .home-atlas { max-height: none; }

  .has-home-atlas .workflow-dock { grid-template-columns: minmax(0,1fr); }
  .has-home-atlas .workflow-dock :is(.dock-label,.scroll-cue) { display: none; }
  .has-home-atlas .dock-track {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .has-home-atlas .dock-step {
    min-height: 62px;
    padding: 8px clamp(6px,1vw,12px);
    column-gap: 7px;
    border-bottom: 1px solid #3b5e6b;
  }
  .has-home-atlas .dock-step > span { color: #adcad4; }
}

@media (min-width: 761px) and (max-width: 1000px),
       (min-width: 761px) and (max-height: 820px) {
  .hero-scroll.has-home-atlas .hero-grid { padding-block: 14px 18px; }
  .hero-scroll.has-home-atlas .hero-grid > .home-atlas { height: clamp(320px,58svh,520px); min-height: 0; }
}

@media (max-width: 760px) {
  .has-home-atlas .dock-track { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .has-home-atlas .dock-step {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    row-gap: 2px;
  }
  .has-home-atlas .dock-step > span { grid-row: 1; }
  .has-home-atlas .dock-step b { grid-row: 2; font-size: 13px; }
  .has-home-atlas .dock-step small { display: none; }
  .atlas-explore .atlas-card { max-height: none; overflow: visible; }
}
