/* "Why our specialization matters": hub cards, article pages and their small animated illustrations. */

/* ---- Illustrations ---- */
.wy-art { display: block; width: 100%; height: auto; overflow: visible; }
.wy-pitch rect, .wy-pitch line, .wy-pitch circle { fill: none; stroke: rgba(233, 237, 245, 0.28); stroke-width: 1; }
.wy-pitch > rect:first-child { fill: rgba(10, 31, 68, 0.25); }
.wy-tags text { font-family: var(--sh-font-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.12em; fill: var(--sh-lime); }
.wy-dots .is-h, .wy-occ__crowd .is-h { fill: var(--sh-blue-bright); stroke: #fff; stroke-width: 1.2; }
.wy-dots .is-a, .wy-occ__crowd .is-a { fill: var(--sh-garnet-bright); stroke: #fff; stroke-width: 1.2; }

/* Eye */
.wy-eye__lid { fill: rgba(10, 31, 68, 0.6); stroke: #fff; stroke-width: 2; }
.wy-eye__iris > circle:first-child { fill: var(--sh-blue); stroke: var(--sh-lime); stroke-width: 3; }
.wy-eye__pupil { fill: var(--sh-navy); }
.wy-eye__glint { fill: #fff; }
.wy-eye__iris { animation: wy-look 6s var(--sh-ease-out) infinite; }
.wy-eye__scan { stroke: var(--sh-lime); stroke-width: 1.5; opacity: 0.8; filter: drop-shadow(0 0 3px var(--sh-lime)); animation: wy-scan 3s ease-in-out infinite alternate; }
@keyframes wy-look { 0%, 18% { transform: translateX(0); } 30%, 48% { transform: translateX(-22px); } 60%, 78% { transform: translateX(20px); } 90%, 100% { transform: translateX(0); } }
@keyframes wy-scan { from { transform: translateY(-34px); } to { transform: translateY(34px); } }

/* Occlusion */
.wy-occ__path { fill: none; stroke: var(--sh-lime); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: 0.85; }
.wy-occ__cone { fill: rgba(196, 240, 0, 0.16); stroke: rgba(196, 240, 0, 0.7); stroke-width: 1; stroke-dasharray: 3 3; transform-box: fill-box; transform-origin: center; animation: wy-grow 4.8s ease-in-out infinite; }
.wy-occ__ball { fill: #fff; stroke: var(--sh-navy); stroke-width: 1.5; animation: wy-ball 4.8s linear infinite; }
@keyframes wy-ball {
  0% { transform: translate(0, 0); opacity: 1; }
  32% { transform: translate(62px, -34px); opacity: 1; }
  38% { opacity: 0; }
  70% { transform: translate(120px, -54px); opacity: 0; }
  76% { opacity: 1; }
  100% { transform: translate(182px, -76px); opacity: 1; }
}
@keyframes wy-grow { 0%, 34% { transform: scale(0.4); opacity: 0; } 50% { opacity: 1; } 72% { transform: scale(1.25); opacity: 1; } 84%, 100% { transform: scale(0.4); opacity: 0; } }

/* Pitch heat */
.wy-heat rect { fill: var(--sh-lime); opacity: 0.05; animation: wy-heat 4.2s ease-in-out infinite; animation-delay: calc(var(--d) * -0.6s); }
@keyframes wy-heat { 0%, 100% { opacity: 0.04; } 50% { opacity: 0.42; } }
.wy-dots circle { animation: wy-bob 3.4s ease-in-out infinite alternate; }
.wy-dots circle:nth-child(2n) { animation-delay: -1.7s; }
@keyframes wy-bob { from { transform: translate(-3px, 2px); } to { transform: translate(4px, -3px); } }

/* Orbit */
.wy-orbit__earth { fill: rgba(47, 134, 240, 0.35); stroke: var(--sh-blue-bright); stroke-width: 1.5; }
.wy-orbit__ring { fill: none; stroke: rgba(233, 237, 245, 0.35); stroke-width: 1; stroke-dasharray: 3 4; }
.wy-orbit__sat rect { fill: #fff; stroke: var(--sh-navy); stroke-width: 1; }
.wy-orbit__sat rect + rect, .wy-orbit__sat rect + rect + rect { fill: var(--sh-lime); }
.wy-orbit__x { animation: wy-ox 4.5s ease-in-out infinite alternate; }
.wy-orbit__sat { animation: wy-oy 4.5s ease-in-out -2.25s infinite alternate; }
@keyframes wy-ox { from { transform: translateX(-100px); } to { transform: translateX(100px); } }
@keyframes wy-oy { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
.wy-orbit__stadium path { fill: var(--sh-navy); stroke: #fff; stroke-width: 1.5; }
.wy-orbit__stadium line { stroke: #fff; stroke-width: 1.5; }
.wy-orbit__waves path { fill: none; stroke: var(--sh-lime); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: wy-wave 2.4s ease-out infinite; }
.wy-orbit__waves path:nth-child(2) { animation-delay: 0.4s; }
.wy-orbit__waves path:nth-child(3) { animation-delay: 0.8s; }
@keyframes wy-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* Loop */
.wy-loop__ring { fill: none; stroke: rgba(233, 237, 245, 0.4); stroke-width: 2; stroke-dasharray: 5 5; }
.wy-loop__nodes circle { fill: var(--sh-navy); stroke: var(--sh-mauve); stroke-width: 2; animation: wy-node 4s linear infinite; }
.wy-loop__nodes circle:nth-child(2) { animation-delay: 1s; }
.wy-loop__nodes circle:nth-child(3) { animation-delay: 2s; }
.wy-loop__nodes circle:nth-child(4) { animation-delay: 3s; }
@keyframes wy-node { 0%, 20% { stroke: var(--sh-lime); fill: var(--sh-blue); } 30%, 100% { stroke: var(--sh-mauve); fill: var(--sh-navy); } }
.wy-loop__runner { transform-origin: 120px 80px; animation: mb-spin-why 4s linear infinite; }
.wy-loop__runner circle { fill: var(--sh-lime); filter: drop-shadow(0 0 4px var(--sh-lime)); }
@keyframes mb-spin-why { to { transform: rotate(360deg); } }
.wy-tags--loop text { fill: #fff; }

/* Corner */
.wy-corner__arc { fill: none; stroke: rgba(233, 237, 245, 0.6); stroke-width: 1.2; }
.wy-corner__zone { fill: rgba(196, 240, 0, 0.14); stroke: var(--sh-lime); stroke-width: 1.2; stroke-dasharray: 3 3; animation: wy-zone 2.4s ease-in-out infinite; }
@keyframes wy-zone { 50% { fill: rgba(196, 240, 0, 0.34); } }
.wy-corner__flight { fill: none; stroke: var(--sh-lime); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; animation: wy-draw 4s var(--sh-ease-out) infinite; }
.wy-corner__runs path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1; opacity: 0.8; animation: wy-draw 4s var(--sh-ease-out) infinite; animation-delay: 0.3s; }
@keyframes wy-draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.wy-corner__ball { fill: #fff; stroke: var(--sh-navy); stroke-width: 1.5; animation: wy-cross 4s linear infinite; }
@keyframes wy-cross {
  0% { transform: translate(0, 0); }
  14% { transform: translate(-21.9px, 4.5px); }
  28% { transform: translate(-33.5px, 16px); }
  41% { transform: translate(-34.9px, 34.5px); }
  55%, 100% { transform: translate(-26px, 60px); }
}

/* ---- Hub cards ---- */
.wy-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.wy-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--sh-radius-l);
  background: var(--sh-glass); border: 1px solid var(--sh-glass-edge); box-shadow: var(--sh-shadow-2);
  -webkit-backdrop-filter: var(--sh-glass-blur); backdrop-filter: var(--sh-glass-blur);
  transition: transform var(--sh-dur-base) var(--sh-ease-out), border-color var(--sh-dur-fast), box-shadow var(--sh-dur-base);
}
.wy-card:hover, .wy-card:focus-within { transform: translateY(-5px); border-color: var(--sh-lime); box-shadow: 0 0 0 1px var(--sh-lime), 0 0 30px rgba(196, 240, 0, 0.35), var(--sh-shadow-2); }
.wy-card:focus-within { outline: 3px solid var(--sh-focus); outline-offset: 3px; }
.wy-card__art { padding: 1rem 1.2rem 0.6rem; background: linear-gradient(160deg, rgba(0, 77, 152, 0.75), rgba(110, 76, 159, 0.55) 60%, rgba(165, 0, 68, 0.55)); border-bottom: 3px solid var(--sh-lime); }
.wy-card:nth-child(3n+2) .wy-card__art { background: linear-gradient(160deg, rgba(110, 76, 159, 0.8), rgba(0, 77, 152, 0.6)); }
.wy-card:nth-child(3n) .wy-card__art { background: linear-gradient(160deg, rgba(165, 0, 68, 0.7), rgba(110, 76, 159, 0.6)); }
.wy-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.3rem 1.2rem; }
.wy-card__num { font-family: var(--sh-font-display); font-weight: 900; font-size: var(--sh-step-2); line-height: 1; color: var(--sh-lime); }
.wy-card__title { margin: 0; font-family: var(--sh-font-display); font-weight: 800; text-transform: uppercase; font-size: var(--sh-step-2); line-height: 1; }
.wy-card__title a { color: #fff; text-decoration: none; }
.wy-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wy-card__title a:focus-visible { outline: none; }
.wy-card__text { margin: 0; font-size: var(--sh-step--1); line-height: 1.5; color: var(--sh-text-muted); }
.wy-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.6rem; }
.wy-card__who { display: flex; gap: 0.3rem; }
.wy-card__who > span[title] { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sh-lime); color: var(--sh-navy); font-family: var(--sh-font-display); font-weight: 900; font-size: 1rem; box-shadow: 0 0 0 2px rgba(10, 31, 68, 0.6); }
.wy-card__go { font-family: var(--sh-font-mono); font-weight: 600; font-size: var(--sh-step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sh-lime); }
.wy-card__go span { display: inline-block; transition: transform var(--sh-dur-fast); }
.wy-card:hover .wy-card__go span { transform: translateX(4px); }

/* ---- Article page ---- */
.wy-read__title { max-width: 18ch; }
.wy-read__grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: minmax(0, 1fr); align-items: start; padding-block: var(--sh-space-m) var(--sh-space-l); }
@media (min-width: 960px) { .wy-read__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .wy-read__aside { position: sticky; top: 1.25rem; } }
.wy-read__paper { padding: clamp(1.4rem, 4vw, 2.75rem); border-radius: var(--sh-radius-l); }
.wy-read__paper .prose > p:first-child { font-size: var(--sh-step-1); line-height: 1.5; font-weight: 600; color: var(--sh-paper-text); }
.wy-read__aside { display: grid; gap: 1rem; }
@media (max-width: 959px) { .wy-read__aside { grid-row: 1; } }
.wy-read__art {
  margin: 0; padding: clamp(1rem, 3vw, 1.6rem); border-radius: var(--sh-radius-l);
  background: linear-gradient(160deg, rgba(0, 77, 152, 0.8), rgba(110, 76, 159, 0.65) 60%, rgba(165, 0, 68, 0.65));
  border: 1px solid rgba(196, 240, 0, 0.5); box-shadow: var(--sh-shadow-2), 0 0 40px -10px rgba(196, 240, 0, 0.35);
}
.wy-read__who { padding: 1.2rem 1.3rem; border-radius: var(--sh-radius-l); background: var(--sh-glass); border: 1px solid var(--sh-glass-edge); -webkit-backdrop-filter: var(--sh-glass-blur); backdrop-filter: var(--sh-glass-blur); }
.wy-read__who .mb-section-title { margin-bottom: 0.8rem; }
.wy-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.wy-who__link {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0.8rem 0.5rem 0.5rem; border-radius: var(--sh-radius-m);
  background: rgba(10, 31, 68, 0.45); border: 1px solid rgba(233, 237, 245, 0.2); color: #fff; text-decoration: none;
  transition: border-color var(--sh-dur-fast), background var(--sh-dur-fast);
}
.wy-who__link:hover { color: #fff; border-color: var(--sh-lime); background: rgba(10, 31, 68, 0.7); }
.wy-who__link img { flex: none; width: 3.2rem; height: 3.2rem; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: linear-gradient(160deg, var(--sh-blue), var(--sh-garnet)); box-shadow: 0 0 0 2px var(--sh-lime); }
.wy-who__text { display: flex; flex-direction: column; line-height: 1.3; }
.wy-who__text b { font-weight: 800; }
.wy-who__text span { font-size: var(--sh-step--1); color: var(--sh-text-muted); }

.sh-motion-paused .wy-art * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .wy-art * { animation: none !important; }
  .wy-occ__ball { transform: translate(62px, -34px); }
  .wy-occ__cone { opacity: 1; }
  .wy-orbit__x { transform: translateX(-60px); }
  .wy-orbit__sat { transform: translateY(-26px); }
  .wy-orbit__waves path { opacity: 1; }
  .wy-corner__ball { transform: translate(-26px, 60px); }
  .wy-card, .wy-card__go span { transition: none; }
}

/* ---- Multiplier illustration: four parts wired through one core into one sequence ---- */
.wy-mx__wires path { fill: none; stroke: rgba(233, 237, 245, 0.75); stroke-width: 1.6; stroke-dasharray: 4 5; animation: wy-mx-flow 1.1s linear infinite; }
@keyframes wy-mx-flow { to { stroke-dashoffset: -9; } }
.wy-mx__parts circle { fill: var(--sh-navy); stroke: #fff; stroke-width: 1.6; }
.wy-mx__beam { fill: none; stroke: var(--sh-lime); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 5 6; filter: drop-shadow(0 0 3px var(--sh-lime)); animation: wy-mx-flow 0.7s linear infinite; }
.wy-mx__out .is-h { fill: var(--sh-blue-bright); } .wy-mx__out .is-a { fill: var(--sh-garnet-bright); } .wy-mx__out .is-d { fill: var(--sh-silver-2); }
.wy-mx__out rect { stroke: #fff; stroke-width: 0.8; animation: wy-mx-lit 3s linear infinite; animation-delay: calc(var(--i) * 0.35s); }
@keyframes wy-mx-lit { 0%, 8% { opacity: 0.25; } 16%, 82% { opacity: 1; } 100% { opacity: 0.25; } }
.wy-mx__core path:first-of-type { fill: var(--sh-navy); stroke: var(--sh-lime); stroke-width: 2; }
.wy-mx__x { fill: none; stroke: var(--sh-lime); stroke-width: 3.2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: wy-mx-pulse 2.4s ease-in-out infinite; }
@keyframes wy-mx-pulse { 50% { transform: scale(0.7); } }
.wy-mx__halo { fill: none; stroke: rgba(196, 240, 0, 0.65); stroke-width: 1.2; stroke-dasharray: 3 5; transform-box: fill-box; transform-origin: center; animation: mb-spin-why 12s linear infinite; }

/* ---- Wide hub card: one read that spans the row ---- */
@media (min-width: 700px) {
  .wy-card--wide { grid-column: 1 / -1; flex-direction: row; }
  .wy-card--wide .wy-card__art { flex: 0 0 min(42%, 26rem); display: grid; align-items: center; border-bottom: 0; border-right: 3px solid var(--sh-lime); }
  .wy-card--wide .wy-card__body { justify-content: center; padding: 1.4rem 1.8rem; gap: 0.6rem; }
  .wy-card--wide .wy-card__title { font-size: var(--sh-step-3); }
  .wy-card--wide .wy-card__text { max-width: 52ch; font-size: var(--sh-step-0); }
  .wy-card--wide .wy-card__foot { margin-top: 0.6rem; }
}

/* ---- Article figures (on paper) ---- */
.wy-fig { margin: 1.4em 0 1.6em; }
.wy-fig figcaption { margin-top: 0.7rem; font-size: var(--sh-step--1); line-height: 1.45; color: var(--sh-paper-muted); }
.wy-fig svg { display: block; width: 100%; height: auto; }
.wy-fig .is-h { --k: var(--sh-blue); } .wy-fig .is-a { --k: var(--sh-garnet); } .wy-fig .is-d { --k: #9AA3BF; }
.wy-fig rect.is-h, .wy-fig rect.is-a, .wy-fig rect.is-d { fill: var(--k); }

.wy-wiring__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(2.6rem, 12%, 5rem) minmax(0, 1.15fr); align-items: stretch; }
.wy-wiring__parts, .wy-wiring__layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.wy-wiring__parts { grid-template-rows: repeat(4, minmax(0, 1fr)); }
.wy-wiring__layers { grid-template-rows: repeat(6, minmax(0, 1fr)); }
.prose .wy-wiring__parts li, .prose .wy-wiring__layers li { display: flex; flex-direction: column; justify-content: center; margin: 0.2rem 0; padding: 0.45rem 0.7rem; border-radius: 10px; font-size: var(--sh-step--2); line-height: 1.3; }
.wy-wiring__parts li { background: var(--sh-navy); color: #E1E6F2; }
.wy-wiring__parts b { font-size: var(--sh-step--1); color: #fff; }
.wy-wiring__layers li { background: #fff; box-shadow: inset 0 0 0 1px var(--sh-paper-border); color: var(--sh-paper-muted); }
.wy-wiring__layers li.is-fed { box-shadow: inset 0 0 0 2px var(--sh-navy), inset 6px 0 0 var(--sh-lime); color: var(--sh-paper-text); }
.wy-wiring__layers b { font-family: var(--sh-font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-garnet); }
.wy-wiring__mid { position: relative; }
.wy-fig .wy-wiring__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wy-wiring__wires path { fill: none; stroke: var(--sh-violet); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; animation: wy-wire 1.1s linear infinite; animation-delay: calc(var(--i) * -0.25s); }
@keyframes wy-wire { to { stroke-dashoffset: -11; } }
.wy-wiring__spine {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(180deg); writing-mode: vertical-rl;
  padding: 0.7rem 0.22rem; border-radius: 999px; background: var(--sh-lime); color: var(--sh-navy); box-shadow: 0 0 0 2px var(--sh-navy);
  font-family: var(--sh-font-mono); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}

.wy-readings__cap { font-family: var(--sh-font-mono); font-weight: 600; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--sh-paper-muted); }
.wy-readings__noisy rect { animation: wy-flicker 2.6s steps(1) infinite; animation-delay: calc(var(--i) * -0.6s); }
.wy-readings__noisy rect:nth-child(3n) { animation-delay: calc(var(--i) * -0.6s - 0.9s); }
.wy-readings__noisy rect:nth-child(4n+1) { animation-delay: calc(var(--i) * -0.6s - 1.7s); }
@keyframes wy-flicker { 0%, 100% { opacity: 1; } 40% { opacity: 0.35; } 70% { opacity: 0.75; } }
.wy-readings__join { fill: none; stroke: var(--sh-navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wy-readings__scan { fill: var(--sh-navy); opacity: 0.75; animation: wy-sweep 7s linear infinite; }
@keyframes wy-sweep { to { transform: translateX(507px); } }
.wy-key { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.7rem 0 0; padding: 0; }
.prose .wy-key li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-size: var(--sh-step--2); font-weight: 700; color: var(--sh-paper-text); }
.wy-key li::before { content: ""; width: 0.85rem; height: 0.85rem; border-radius: 3px; background: var(--k); }

.wy-proof__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.prose .wy-proof__rows li { margin: 0; }
.prose .wy-proof__metric { margin: 0 0 0.35rem; font-family: var(--sh-font-mono); font-weight: 600; font-size: var(--sh-step--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-paper-muted); }
.wy-proof__track { position: relative; height: 14px; border-radius: 7px; background: rgba(10, 31, 68, 0.1); }
.wy-proof__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--ours); border-radius: 7px; background: var(--sh-navy); box-shadow: inset 0 -4px 0 var(--sh-lime); transform-origin: left; animation: wy-grow 1.4s var(--sh-ease-out) both; }
@keyframes wy-grow { from { transform: scaleX(0); } }
.wy-proof__mark { position: absolute; left: var(--base); top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--sh-garnet); box-shadow: 0 0 0 2px var(--sh-paper); }
.prose .wy-proof__values { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0.45rem 0 0; font-size: var(--sh-step--1); color: var(--sh-paper-muted); }
.wy-proof__values span { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.wy-proof__values span::before { content: ""; align-self: center; width: 0.9rem; height: 0.5rem; border-radius: 3px; background: var(--sh-navy); box-shadow: inset 0 -2px 0 var(--sh-lime); }
.wy-proof__values span + span::before { width: 3px; height: 0.9rem; background: var(--sh-garnet); box-shadow: none; }
.wy-proof__values b { font-family: var(--sh-font-display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--sh-paper-text); font-variant-numeric: tabular-nums; }

.sh-motion-paused .wy-fig * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .wy-fig * { animation: none !important; } .wy-readings__scan { display: none; } }
