/* An interactive story, contained within the original experience section. */
.heritage-explorer {
  --heritage-x: 65%;
  --heritage-y: 30%;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 25px;
  overflow: hidden;
  border: 1px solid #49649b;
  border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0%, #3e427759, transparent 65%), linear-gradient(135deg, #142943, #202f55);
  color: #f4f7ff;
  box-shadow: 0 20px 48px #1b356218;
}
.heritage-explorer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--heritage-x) var(--heritage-y), #9b9bff1c, transparent 80%);
  transition: opacity .6s ease;
}
.heritage-explorer:hover::before, .heritage-explorer:focus-within::before { opacity: 1; }
.heritage-explorer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.heritage-explorer-heading > span { display: flex; align-items: center; gap: 8px; font-size: .59rem; font-weight: 650; letter-spacing: .1em; color: #b5c9f6; }
.heritage-explorer-heading i { width: 5px; height: 5px; border-radius: 50%; background: #93d5ff; box-shadow: 0 0 12px #78bfff80; }
.heritage-explorer-heading > small { font-size: .61rem; color: #b9c9e4; }
.heritage-explorer-heading > small span { margin-left: 4px; color: #99b9ff; }
.heritage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 23px; }
.heritage-tab { position: relative; padding: 15px 10px 13px; text-align: left; cursor: pointer; color: #e4edff; background: #ffffff04; border: 1px solid #a1bbf12b; border-radius: 12px; font: inherit; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.heritage-tab strong { display: block; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1; font-weight: 600; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.heritage-tab strong small { font-size: .52em; margin-left: 2px; }
.heritage-tab > span { display: block; margin-top: 11px; font-size: .64rem; line-height: 1.4; color: #bdcce9; }
.heritage-tab:hover { border-color: #b3c5ff88; background: #8daeff15; }
.heritage-tab[aria-selected="true"] { color: #16335d; background: linear-gradient(130deg, #e7f6ff, #e8e4ff); border-color: #d3e3ff; box-shadow: 0 5px 20px #03173229; }
.heritage-tab[aria-selected="true"] > span { color: #365681; }
.heritage-tab:focus-visible, .heritage-explorer a:focus-visible, .heritage-pane:focus-visible { outline: 2px solid #b4d4ff; outline-offset: 4px; }
.heritage-stage { min-width: 0; }
.heritage-pane { height: 270px; display: flex; flex-direction: column; border-radius: 4px; }
.heritage-pane[hidden] { display: none; }
.heritage .heritage-pane h3 { color: #f6f8ff; font-size: 1.18rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.heritage .heritage-pane > p { color: #bacbe7; font-size: .8rem; line-height: 1.6; margin: 9px 0 0; max-width: none; }
.heritage-journey { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 5px; flex: 1; min-height: 105px; padding-block: 13px; }
.heritage-milestone { min-width: 0; }
.heritage-milestone:last-child { text-align: right; }
.heritage-milestone strong { display: block; color: #f1f6ff; font-size: 1.4rem; font-weight: 550; letter-spacing: -.04em; }
.heritage-milestone span { display: block; color: #acc0e6; font-size: .64rem; line-height: 1.45; margin-top: 6px; }
.heritage-journey-route { position: relative; display: grid; place-items: center; }
.heritage-journey-route svg { display: block; width: 100%; }
.heritage-infinity { position: absolute; display: grid; place-items: center; width: 57px; height: 57px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #4863a0, #263857 70%); color: #d5e3ff; font-size: 2.6rem; line-height: 1; border: 1px solid #8da4de80; box-shadow: 0 0 0 8px #9fbfff09, 0 0 30px #7686fc20; }
.heritage .heritage-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; padding-top: 9px; border-top: 1px solid #a2baf12b; font-size: .74rem; font-weight: 550; line-height: 1.5; color: #c7ddff; }
.heritage-action > span { font-size: 1rem; transition: transform .3s; }
.heritage-action:hover { color: #fff; }
.heritage-action:hover > span { transform: translate(3px, -3px); }
.heritage-capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.heritage-capabilities > a { display: flex; justify-content: center; align-items: center; padding: 6px 4px; min-height: 28px; border: 1px solid #7999e04a; border-radius: 6px; background: #688bdb0e; color: #d2e3ff; font-size: .68rem; line-height: 1.3; text-align: center; transition: background .25s, border-color .25s; }
.heritage-capabilities > a:nth-child(3n) { border-color: #ae96ed4a; background: #b494ef0c; color: #ded1ff; }
.heritage-capabilities > a:last-child { grid-column: span 4; }
.heritage-capabilities > a:hover { background: #8eafff26; border-color: #b3c9ff; color: #fff; }
.heritage-network { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 14px 0; }
.heritage-network-hub { display: flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 10px; background: linear-gradient(110deg, #5471ba38, #976cc932); border: 1px solid #c7b9ff66; }
.heritage-network-hub > span { color: #c4c9ff; font-size: 1.6rem; line-height: 1; }
.heritage-network-hub > strong { font-size: .8rem; font-weight: 550; }
.heritage-network-lines { width: 100%; height: 28px; }
.heritage-network-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.heritage-network-nodes a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid #7496d869; border-radius: 8px; background: #759bea10; font-size: .72rem; color: #dbe9ff; transition: background .3s, border-color .3s; }
.heritage-network-nodes a:hover { background: #83a1f12c; border-color: #a9c5ff; }
.heritage-network-nodes a > span { color: #94b4eb; }
@media (min-width: 851px) and (max-width: 1100px) {
  .heritage-explorer { padding: 20px; }
  .heritage-explorer-heading > small { font-size: .56rem; }
  .heritage-tab > span { font-size: .59rem; }
  .heritage-pane { height: 290px; }
}
@media (max-width: 850px) {
  .heritage-explorer { width: 100%; }
  .heritage-tab strong { font-size: 2.6rem; }
}
@media (max-width: 500px) {
  .heritage-explorer { padding: 19px; border-radius: 18px; }
  .heritage-explorer-heading { gap: 8px; margin-bottom: 16px; }
  .heritage-explorer-heading > span { font-size: .53rem; letter-spacing: .06em; gap: 6px; }
  .heritage-explorer-heading > small { font-size: .56rem; }
  .heritage-tabs { gap: 6px; margin-bottom: 21px; }
  .heritage-tab { padding: 12px 8px; border-radius: 10px; }
  .heritage-tab strong { font-size: 2.35rem; }
  .heritage-tab > span { font-size: .62rem; min-height: 2.8em; }
  .heritage-pane { height: 295px; }
  .heritage .heritage-pane h3 { font-size: 1.12rem; }
  .heritage .heritage-pane > p { font-size: .79rem; }
  .heritage-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-block: 8px; }
  .heritage-capabilities > a { font-size: .65rem; min-height: 28px; padding: 5px 2px; }
  .heritage-capabilities > a:last-child { grid-column: span 3; }
  .heritage-network-nodes { gap: 5px; }
  .heritage-network-nodes a { font-size: .69rem; gap: 4px; }
  .heritage-network-nodes a > span { display: none; }
  .heritage-milestone strong { font-size: 1.25rem; }
  .heritage-milestone span { font-size: .6rem; }
  .heritage-infinity { width: 45px; height: 45px; font-size: 2.2rem; }
  .heritage .heritage-action { font-size: .72rem; }
}
@media (max-width: 360px) {
  .heritage-explorer { padding: 17px; }
  .heritage-explorer-heading { align-items: flex-start; }
  .heritage-explorer-heading > small { max-width: 60px; text-align: right; }
  .heritage-tab { padding-inline: 7px; }
  .heritage-tab strong { font-size: 2.1rem; }
  .heritage-tab > span { font-size: .59rem; }
  .heritage-pane { height: 312px; }
  .heritage-journey { grid-template-columns: 1fr 1.2fr 1fr; }
}
body.motion-off .heritage-explorer::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .heritage-explorer::before { display: none; } }
