.context-page { padding-block: clamp(2.4rem, 6vw, 5rem); }
.context-heading { max-width: 50rem; margin-bottom: clamp(1.4rem, 3vw, 2.35rem); }
.context-heading .eyebrow { margin-bottom: .75rem; }
.context-heading h1 { font-size: clamp(2.45rem, 6.1vw, 5rem); letter-spacing: -.075em; text-wrap: balance; }
.context-heading > p:last-child { max-width: 57ch; margin: .9rem 0 0; color: var(--muted); line-height: 1.55; }
.context-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); align-items: start; gap: 1.2rem; }
.context-board, .context-details { min-width: 0; border: 1px solid #b6a8ca; border-radius: .55rem; background: #fbf9fe; }
.context-board { overflow: hidden; box-shadow: .28rem .28rem #ded2eb; }
.context-board-bar { padding: .72rem .9rem; border-bottom: 1px solid #cbbddd; }
.context-board-bar strong { font-size: .89rem; }
.context-map { position: relative; isolation: isolate; height: clamp(26rem, 39vw, 32rem); background: radial-gradient(ellipse at 48% 47%, #fff, #f7f4fb 75%); }
.context-connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--connection-peak, 1); animation: connection-breathe 6s ease-in-out infinite; }
.context-connections-underlay { --connection-rest: .22; --connection-peak: .34; z-index: 0; }
.context-connections-overlay { z-index: 4; }
.context-routes { margin: 0; padding: 0; list-style: none; }
.context-routes li {
  position: absolute; z-index: 5; transform: translate(-50%, -50%); pointer-events: none;
  padding: .15em .48em; border: 1px solid #d9cde4; border-radius: 1em;
  background: #fcf9fe; color: #654c7f; font-size: .72rem; font-weight: 700; line-height: 1.15;
  transition: background-color .38s ease, border-color .38s ease, color .38s ease;
}
.context-routes .is-highlighted { background: #614a7a; border-color: #614a7a; color: #fff; }
.context-routes li:not([style]) { visibility: hidden; }
.context-route-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.overture-layer {
  position: absolute; inset: var(--top) auto auto var(--left); width: var(--width); height: var(--height);
  display: grid; grid-template-rows: 1.28rem 1fr; min-width: 0;
  padding: 1.22rem clamp(.8rem, 2.9vw, 2.55rem) .85rem; pointer-events: none;
}
.overture-layer::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--node-ink) 29%, white); border-radius: var(--shape);
  background: color-mix(in srgb, var(--node-fill) 72%, transparent);
  animation: zone-drift var(--drift-time, 14s) ease-in-out var(--drift-delay, 0s) infinite;
}
.overture-layer[data-layer="market"] { --left: 3%; --top: 11%; --width: 39%; --height: 33%; --shape: 46% 54% 65% 35% / 54% 37% 63% 46%; --node-ink: #6c528e; --node-fill: #f3e9fc; }
.overture-layer[data-layer="system"] { --left: 31%; --top: 4%; --width: 37%; --height: 36%; --shape: 53% 47% 34% 66% / 47% 40% 60% 53%; --node-ink: #536c92; --node-fill: #e6f0ff; --drift-time: 17s; --drift-delay: -6s; }
.overture-layer[data-layer="future"] { --left: 59%; --top: 13%; --width: 38%; --height: 37%; --shape: 63% 37% 43% 57% / 49% 49% 51% 51%; --node-ink: #6b5694; --node-fill: #ede7fc; --drift-time: 16s; --drift-delay: -10s; }
.overture-layer[data-layer="action"] { --left: 6%; --top: 37%; --width: 48%; --height: 38%; --shape: 42% 58% 36% 64% / 51% 46% 54% 49%; --node-ink: #765074; --node-fill: #f6eafa; --drift-time: 19s; --drift-delay: -13s; }
.overture-layer[data-layer="value"] { --left: 47%; --top: 41%; --width: 47%; --height: 36%; --shape: 42% 58% 58% 42% / 60% 50% 50% 40%; --node-ink: #876232; --node-fill: #fff0d3; --drift-time: 15s; --drift-delay: -3s; }
.overture-layer[data-layer="foundation"] {
  --left: 13%; --top: 67%; --width: 74%; --height: 29%;
  --shape: 50% 50% 12% 13% / 55% 55% 35% 35%; --node-ink: #355a96; --node-fill: #dceaff; --title-top: 34%;
  --drift-time: 21s; --drift-delay: -9s; --drift-distance: 1.5px; --drift-grow: 1.009; --drift-shrink: .995;
  padding-top: 1rem;
}
.overture-layer[data-layer="foundation"]::before {
  z-index: 3; border-color: #91afd4; border-bottom-width: 3px;
  background: linear-gradient(170deg, #e8f2fff2, #d7e7fcf2);
  box-shadow: 0 .35rem .8rem #5b78a41a;
}
.overture-layer h2 {
  position: absolute; z-index: 6; top: var(--title-top, 48%); left: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 94%; margin: 0; color: var(--node-ink); font-size: 1.06rem;
  line-height: 1.2; letter-spacing: -.02em; text-align: center; pointer-events: none;
}
.overture-layer h2 small { display: inline; margin-inline-start: .38rem; color: var(--muted); font: 700 .63rem/1.2 ui-monospace, monospace; }
.overture-layer-nodes { display: grid; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); align-items: center; min-width: 0; min-height: 0; }
.overture-node, .overture-workchart, .overture-reference { position: relative; min-width: 0; }
.overture-reference {
  position: absolute; z-index: 5; top: 70%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .32rem; color: #766887;
  font-size: .69rem; font-weight: 600; line-height: 1.15; white-space: nowrap;
}
.overture-reference-dot { width: .44rem; height: .44rem; border: 1px solid currentColor; border-radius: 50%; background: var(--node-fill); }
.overture-reference.is-connected .overture-reference-dot { background: currentColor; }
.overture-node { z-index: 1; grid-column: var(--slot); grid-row: var(--row); display: grid; place-items: center; justify-self: center; width: min(100%, 2.35rem); height: 2.35rem; padding: 0; border: 0; border-radius: 50%; color: var(--node-ink); background: transparent; cursor: pointer; pointer-events: auto; }
.overture-layer[data-layer="foundation"] .overture-node { --node-opacity: .57; position: absolute; z-index: 4; top: var(--foundation-y); left: var(--foundation-x); transform: translate(-50%, -50%); }
.overture-node > span { width: 1.25rem; height: 1.25rem; border: 1.5px solid currentColor; border-radius: 50%; background: var(--node-fill); opacity: var(--node-opacity, .34); transition: opacity .22s ease, box-shadow .22s ease; animation: context-float 4.8s ease-in-out var(--delay) infinite; }
.overture-node:is(:hover, :focus-visible, [aria-pressed="true"]), .context-map.is-exploring .overture-node.is-connected { z-index: 5; }
.context-map.is-exploring .overture-node.is-connected > span { opacity: .82; }
.overture-node:is(:hover, :focus-visible) > span { opacity: 1; box-shadow: 0 0 0 .2rem color-mix(in srgb, currentColor 19%, transparent); }
.overture-node[aria-pressed="true"] > span { opacity: 1; background: var(--node-ink); box-shadow: 0 0 0 .24rem color-mix(in srgb, currentColor 21%, transparent); }
.overture-workchart { z-index: 5; grid-column: 1 / -1; grid-row: 2; align-self: end; justify-self: center; display: block; max-width: 100%; border-radius: .4rem; text-decoration: none; pointer-events: auto; }
.overture-workchart > span { display: grid; gap: .15rem; padding: .43rem .75rem; border: 1px solid #476da9; border-radius: .4rem; background: #d5e8ff; color: #203d70; box-shadow: 0 .22rem #aec5e7; animation: context-float 5.4s ease-in-out infinite; }
.overture-workchart strong { font-size: .94rem; white-space: nowrap; }
.overture-workchart small { font: 700 .64rem/1.2 ui-monospace, monospace; }
.overture-workchart:hover > span { background: #c2dcff; }
.overture-workchart.is-selected > span { border-color: #294eaa; box-shadow: 0 .22rem #aec5e7, 0 0 0 .16rem #bcd2f5; }
.context-map button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.context-details { padding: 1rem; }
.context-details .eyebrow { margin-bottom: .45rem; font-size: .7rem; }
.context-details h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; }
.context-details p:not(.eyebrow) { margin: .5rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.context-details .context-guide { margin-top: .8rem; padding-top: .65rem; border-top: 1px solid #ded2eb; }
@keyframes context-float { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes connection-breathe { 0%, 100% { opacity: var(--connection-rest, .74); } 50% { opacity: var(--connection-peak, 1); } }
@keyframes zone-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  37% { transform: translate(var(--drift-distance, 4px), calc(-1 * var(--drift-distance, 4px))) scale(var(--drift-grow, 1.023), var(--drift-shrink, .986)); }
  72% { transform: translate(calc(-1 * var(--drift-distance, 4px)), var(--drift-distance, 4px)) scale(var(--drift-shrink, .986), var(--drift-grow, 1.023)); }
}
@media (max-width: 850px) {
  .context-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 550px) {
  .context-map:not(:target) { height: 29rem; }
  .context-map:not(:target) .overture-layer { padding-inline: .48rem; }
  .context-map:not(:target) .overture-layer h2 { font-size: .83rem; }
  .context-map:not(:target) .overture-reference { gap: .2rem; font-size: .59rem; }
  .context-map:not(:target) .overture-node > span { width: .96rem; height: .96rem; }
  .context-map:not(:target) .context-routes li { font-size: .64rem; }
}
body:has(#map-preview:target) { margin: 0; background: #f7f4fb; }
body:has(#map-preview:target) :is(.masthead, .skip-link, .context-heading, .context-board-bar, .context-details) { display: none; }
body:has(#map-preview:target) .context-page { width: 100%; padding: 0; }
body:has(#map-preview:target) .context-layout { display: block; }
body:has(#map-preview:target) .context-board { border: 0; border-radius: 0; box-shadow: none; }
.context-map:target { height: 100vh; }
.context-map:target .overture-layer { grid-template-rows: .63rem 1fr; padding: .4rem .55rem .15rem; }
.context-map:target .overture-layer h2 { font-size: .59rem; }
.context-map:target .overture-layer h2 small { margin-inline-start: .18rem; font-size: .45rem; }
.context-map:target .overture-reference { gap: .16rem; font-size: .45rem; }
.context-map:target .overture-reference-dot { width: .26rem; height: .26rem; }
.context-map:target .overture-node { width: 1rem; height: 1rem; }
.context-map:target .overture-node > span { width: .47rem; height: .47rem; border-width: 1px; }
.context-map:target .context-routes li { font-size: .45rem; }
.context-map:target .overture-workchart { align-self: start; }
.context-map:target .overture-workchart > span { padding: .08rem .28rem; line-height: 1.1; box-shadow: none; }
.context-map:target .overture-workchart strong { font-size: .5rem; }
.context-map:target .overture-workchart small { display: none; }
.context-map:target .overture-layer::before { animation: none; }
.context-map:target :is(.context-connections, .overture-node > span, .overture-workchart > span) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .context-connections, .overture-layer::before, .overture-node > span, .overture-workchart > span { animation: none; }
  .overture-node > span { transition: none; }
}
