/* Journey ("Story mode"): a scroll-driven trip through floating islands, one per chapter.
   The stage is fixed; <main> provides the scroll length and holds the real, readable story. */
.jy {
  --space: #070A1A; --space-2: #0D1030; --cyan: #8FF3FF; --lilac: #B9A8FF;
  background: var(--space); overflow-x: hidden;
  background-image: none;
}
html:has(.jy) { scroll-behavior: auto; scroll-snap-type: y proximity; }
.jy-bar { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: fixed; inset: 0 0 auto; }
.jy-bar .bar-title b { color: var(--text); }

/* ---------- Stage ---------- */
.jy-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #121640 0%, var(--space) 55%), var(--space); }
.jy-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.jy-neb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.jy-neb.n1 { width: 46vmax; height: 46vmax; left: -14vmax; top: 10vh; background: radial-gradient(circle, #6B3FD6 0%, transparent 65%); }
.jy-neb.n2 { width: 38vmax; height: 38vmax; right: -12vmax; top: 40vh; background: radial-gradient(circle, #C2449F 0%, transparent 65%); opacity: 0.4; }
.jy-neb.n3 { width: 40vmax; height: 40vmax; left: 30vw; top: 90vh; background: radial-gradient(circle, #1E9EC4 0%, transparent 65%); opacity: 0.35; }
.jy-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

/* Light thread */
.jy-thread { position: absolute; overflow: visible; left: 0; top: 0; }
.jy-thread path { fill: none; stroke-linecap: round; }
.jy-thread .base { stroke: rgba(185, 168, 255, 0.16); stroke-width: 1.5; stroke-dasharray: 2 7; }
.jy-thread .glow { stroke: url(#jy-lit); stroke-width: 9; opacity: 0.45; filter: url(#jy-glow); }
.jy-thread .lit { stroke: url(#jy-lit); stroke-width: 2.2; }

/* Islands */
.jy-isle { position: absolute; left: 0; top: 0; width: var(--w); will-change: transform, opacity; }
.jy-isle > svg { display: block; width: 100%; height: auto; overflow: visible; animation: jy-bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.jy-isle.deco > svg { animation-duration: 9s; }
@keyframes jy-bob { 50% { translate: 0 -10px; } }
.jy-isle .lbl { position: absolute; left: 50%; bottom: -6%; translate: -50% 0; padding: 4px 10px; border-radius: 999px; background: rgba(13, 16, 48, 0.7); border: 1px solid rgba(185, 168, 255, 0.25); color: var(--lilac); font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; transition: opacity .4s ease; }
.jy-isle.cur .lbl { opacity: 0; }

/* Portal at the end */
.jy-portal { position: absolute; left: 0; top: 0; width: var(--pw, 520px); aspect-ratio: 1; translate: -50% -50%; will-change: transform, opacity; }
.jy-portal i { position: absolute; inset: var(--in); border-radius: 50%; }
.jy-portal i:nth-child(1) { --in: 0; background: radial-gradient(circle, rgba(70, 60, 160, 0.25), rgba(30, 26, 80, 0.85) 70%); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 0 60px rgba(143, 243, 255, 0.35); }
.jy-portal i:nth-child(2) { --in: 12%; background: linear-gradient(180deg, #5F6BD8, #2E2A78); box-shadow: inset 0 10px 40px rgba(255, 255, 255, 0.2); }
.jy-portal i:nth-child(3) { --in: 26%; background: linear-gradient(180deg, #7A43C9, #2A1D5E); }
.jy-portal i:nth-child(4) { --in: 38%; background: radial-gradient(circle at 50% 30%, #FFD089, #E58A6A 45%, #6E3FA8 80%); box-shadow: 0 0 80px rgba(255, 181, 71, 0.45); }
.jy-portal b { position: absolute; left: 50%; top: 46%; width: 26px; height: 26px; translate: -50% -50%; background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 8px #fff); animation: jy-twinkle 2.4s ease-in-out infinite; }
@keyframes jy-twinkle { 50% { scale: 1.5; opacity: 0.7; } }

/* The hero (avatar on a hover disc) */
.jy-hero { position: absolute; left: 0; top: 0; width: var(--hw, 150px); translate: -50% -100%; will-change: transform; }
.jy-hero img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); transform-origin: 50% 100%; transition: rotate .4s ease; }
.jy-hero .disc { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: -7%; height: 20%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #E9FDFF 0%, #8FF3FF 22%, #6B57F0 58%, rgba(40, 30, 110, 0.9) 75%);
  box-shadow: 0 0 24px rgba(143, 243, 255, 0.65), 0 10px 30px rgba(107, 87, 240, 0.6), inset 0 -4px 8px rgba(0, 0, 0, 0.35); }
.jy-hero .disc::after { content: ""; position: absolute; left: 20%; right: 20%; top: 100%; height: 160%; background: linear-gradient(rgba(143, 243, 255, 0.45), transparent); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); filter: blur(4px); opacity: var(--thrust, 0.35); transition: opacity .3s ease; }
.jy-hero .spark { position: absolute; z-index: 0; left: 50%; bottom: 0; width: 120%; aspect-ratio: 1; translate: -50% 40%; border-radius: 50%; background: radial-gradient(circle, rgba(143, 243, 255, 0.25), transparent 60%); }

/* ---------- Story (scroll content) ---------- */
.jy-chs { position: relative; z-index: 2; }
.jy-ch { height: 100svh; scroll-snap-align: start; }
.jy-copy { position: fixed; z-index: 3; left: 50%; top: calc(72px + 2.5vh); width: min(640px, calc(100vw - 2 * var(--gutter))); translate: -50% 14px; text-align: center; display: grid; gap: 10px; justify-items: center;
  opacity: 0; visibility: hidden; transition: opacity .55s ease, translate .7s var(--ease), visibility 0s linear .55s; pointer-events: none; }
.jy-copy.on { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .55s ease .1s, translate .7s var(--ease) .1s, visibility 0s; pointer-events: auto; }
.jy-eye { margin: 0; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7CF0C2; }
.jy-eye b { color: var(--accent); font-weight: 500; }
.jy-copy h1, .jy-copy h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.jy-copy.intro h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.jy-copy > p:not(.jy-eye) { margin: 0; color: var(--text-soft); font-size: clamp(0.9375rem, 1.3vw, 1.0625rem); line-height: 1.55; max-width: 52ch; }
.jy-copy.outro { top: auto; bottom: calc(10vh + env(safe-area-inset-bottom, 0px)); }
.jy-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* Skills + certificates, pinned near the bottom */
.jy-meta { position: fixed; z-index: 3; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100vw - 2 * var(--gutter))); translate: -50% 14px; display: grid; gap: 10px; justify-items: center;
  opacity: 0; visibility: hidden; transition: opacity .55s ease, translate .7s var(--ease), visibility 0s linear .55s; pointer-events: none; }
.jy-meta.on { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .55s ease .2s, translate .7s var(--ease) .2s, visibility 0s; pointer-events: auto; }
.jy-lab { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.jy-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jy-skills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(13, 16, 48, 0.72); border: 1px solid rgba(124, 240, 194, 0.35); color: var(--text); font-size: 0.8125rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.jy-skills li::before { content: "+"; font: 600 0.75rem/1 var(--f-mono); color: #7CF0C2; }
.jy-skills.now li { border-color: rgba(255, 181, 71, 0.45); }
.jy-skills.now li::before { content: ""; width: 15px; height: 15px; flex: 0 0 15px; background-color: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206C9%204%205%204%203%205v14c3-1%206-1%209%201%203-2%206-2%209-1V5c-2-1-6-1-9%201Z%22%2F%3E%3Cpath%20d%3D%22M12%206v14M6%208h3M6%2011h3M15%208h3M15%2011h3%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206C9%204%205%204%203%205v14c3-1%206-1%209%201%203-2%206-2%209-1V5c-2-1-6-1-9%201Z%22%2F%3E%3Cpath%20d%3D%22M12%206v14M6%208h3M6%2011h3M15%208h3M15%2011h3%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.jy-certs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jy-certs li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; color: var(--text-soft); }
.jy-certs img { width: 22px; height: 22px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; }

/* ---------- HUD ---------- */
.jy-dots { position: fixed; z-index: 4; right: calc(var(--gutter) - 6px); top: 50%; translate: 0 -50%; display: grid; gap: 4px; }
.jy-dots button { position: relative; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.jy-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); transition: background-color .3s ease, scale .3s var(--ease), border-color .3s ease; }
.jy-dots button.done::before { background: rgba(255, 255, 255, 0.55); }
.jy-dots button[aria-current="true"]::before { background: #fff; border-color: #fff; scale: 1.3; box-shadow: 0 0 10px rgba(143, 243, 255, 0.8); }
.jy-dots button span { position: absolute; right: 30px; padding: 4px 9px; border-radius: 8px; background: rgba(13, 16, 48, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text); font-size: 0.75rem; white-space: nowrap; opacity: 0; translate: 6px 0; transition: opacity .2s ease, translate .2s ease; pointer-events: none; }
.jy-dots button:hover span, .jy-dots button:focus-visible span { opacity: 1; translate: 0 0; }
.jy-hud { position: fixed; z-index: 4; left: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto 120px; align-items: center; gap: 6px 12px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-faint); }
.jy-hud .lvl b { color: var(--text); font-weight: 500; }
.jy-hud .lvl em { font-style: normal; }
.jy-hud .xp { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.jy-hud .xp i { display: block; height: 100%; width: calc(var(--xp, 0) * 100%); background: linear-gradient(90deg, #7CF0C2, var(--accent)); transition: width .4s ease; }
.jy-hud .xpn { grid-column: 1 / -1; }
.jy-hud .xpn b { color: #7CF0C2; font-weight: 500; }
.jy-hint { position: fixed; z-index: 4; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; margin: 0; display: grid; justify-items: center; gap: 2px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-soft); transition: opacity .4s ease; }
.jy-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: jy-nudge 1.6s ease-in-out infinite; }
@keyframes jy-nudge { 50% { translate: 0 4px; } }
.jy-hint.gone { opacity: 0; }
.jy-noscript { position: relative; z-index: 5; padding: 120px var(--gutter); text-align: center; color: var(--text-soft); }

@media (max-width: 720px) {
  .jy-copy { top: calc(64px + 1.5vh); gap: 8px; }
  .jy-copy > p:not(.jy-eye) { font-size: 0.875rem; }
  .jy-meta { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .jy-skills li { padding: 5px 10px; font-size: 0.75rem; }
  .jy-certs li { font-size: 0.6875rem; padding: 3px 9px 3px 3px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jy-certs img { width: 18px; height: 18px; flex: 0 0 18px; }
  .jy-certs { gap: 5px; }
  .jy-dots { right: 2px; gap: 0; }
  .jy-dots button { width: 32px; height: 32px; }
  .jy-dots button span { display: none; }
  .jy-hud { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); grid-template-columns: auto 90px; }
  .jy-hud .xpn { display: none; }
  .jy-hint { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .jy-isle > svg, .jy-portal b, .jy-hint svg { animation: none; }
}

/* Each milestone owns a distinct high-resolution portrait, with the same island motion. */
.jy-portrait {
  position: absolute; z-index: 1; left: 50%; top: 36.5%;
  width: var(--aw, 240px); height: auto; max-width: none;
  transform: translate(-50%, -100%); transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
  animation: jy-bob 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .jy-portrait { animation: none; }
}

/* Keep the opening portrait’s clasped hands above the hover disc. */
.jy-hero .disc { bottom: -12%; height: 14%; }

/* Award level: trophy stands in front of the portrait, at his side */
.jy-isle > svg.jy-trophy { position: absolute; z-index: 2; left: 84%; top: 40%; width: 38%; height: auto; transform: translate(-50%, -100%); overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 18px rgba(255, 201, 77, 0.35)); animation: jy-bob 7s ease-in-out infinite; animation-delay: calc(var(--d, 0s) - 0.4s); }
@media (prefers-reduced-motion: reduce) { .jy-isle > svg.jy-trophy { animation: none; } }

/* Logos of the schools, companies and issuers in each scene, floating beside the portrait */
.jy-logos { position: absolute; z-index: 2; left: 4%; top: -34%; width: 19%; display: grid; gap: 10px; pointer-events: none; }
.jy-lg { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(185, 168, 255, 0.35), 0 0 22px rgba(143, 243, 255, 0.25); translate: calc(var(--j) * 14%) 0; animation: jy-bob 6s ease-in-out infinite; animation-delay: calc(var(--d, 0s) - var(--j) * 0.7s); }
.jy-lg img { width: 72%; height: 72%; object-fit: contain; }
.jy-lg b { font: 700 clamp(0.7rem, 1.4vw, 1rem)/1 var(--f-display); color: #2A2350; letter-spacing: -0.01em; }
.jy-certs i.mono { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #2A2350; font: 700 0.5rem/1 var(--f-display); font-style: normal; }
@media (max-width: 720px) {
  .jy-logos { gap: 6px; width: 17%; }
  .jy-certs i.mono { width: 18px; height: 18px; flex: 0 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .jy-lg { animation: none; } }

/* The avatar is grounded on a layered design canvas rather than a hover disc. */
.jy-hero .disc, .jy-hero .spark { display: none; }
.jy-isle.deco { opacity: .35; }

/* Keep school/company tiles alongside the portrait, below the chapter copy. */
.jy-logos { top: calc(36.5% - var(--aw, 240px) * .66); }

/* A quiet orbital pedestal: no labels, with light moving around its rim. */
.jy-orbit-light { animation: jy-orbit 12s linear infinite; }
.jy-orbit-light.reverse { animation-direction: reverse; animation-duration: 16s; }
.jy-base-aura { animation: jy-breathe 5s ease-in-out infinite; }
@keyframes jy-orbit { to { stroke-dashoffset: -100; } }
@keyframes jy-breathe { 50% { opacity: .45; } }
.jy-isle.deco { visibility: hidden; }

/* Skills are chips; institutions, credentials and tools are contextual records. */
.jy-credentials { display: grid; justify-items: center; gap: 9px; width: 100%; border-top: 1px solid rgba(185,168,255,.16); padding-top: 14px; margin-top: 5px; }
.jy-credentials > .jy-lab { color: #BEB6D1; font-size: .6875rem; letter-spacing: .18em; }
.jy-credentials .jy-certs { gap: 10px 22px; }
.jy-credentials .jy-certs li { border: 0; background: none; border-radius: 0; padding: 0; max-width: 300px; text-align: left; align-items: center; gap: 10px; white-space: normal; overflow: visible; }
.jy-org-link { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.jy-org-link strong { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.jy-org-link:hover strong, .jy-org-link:focus-visible strong { text-decoration-color: currentColor; }
.jy-credentials .jy-certs img, .jy-credentials .jy-certs i.mono { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; padding: 4px; box-sizing: border-box; }
.jy-credentials .jy-certs span { display: grid; gap: 3px; line-height: 1.3; }
.jy-credentials .jy-certs strong { color: #E1DDEC; font: 500 .8125rem/1.3 var(--f-body, sans-serif); }
.jy-credentials .jy-certs small { color: #A6A0B7; font-size: .6875rem; }
@media (max-width: 720px) {
  .jy-meta { width: calc(100vw - 44px); gap: 8px; }
  .jy-credentials { padding-top: 11px; gap: 8px; }
  .jy-credentials .jy-certs { gap: 9px 16px; }
  .jy-credentials .jy-certs li { max-width: 100%; gap: 8px; }
  .jy-credentials .jy-certs strong { font-size: .75rem; }
  .jy-credentials .jy-certs small { font-size: .6875rem; }
  .jy-credentials .jy-certs img, .jy-credentials .jy-certs i.mono { width: 29px; height: 29px; flex-basis: 29px; border-radius: 7px; padding: 3px; }
  .jy-credentials.courses .jy-certs { display: grid; grid-template-columns: 1fr; justify-items: start; }
  .jy-lg { box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 1px rgba(185,168,255,.25); }
}
@media (prefers-reduced-motion: reduce) {
  .jy-orbit-light, .jy-base-aura { animation: none; }
}

/* Dates already appear in the chapter heading; keep neighboring stops clear. */
.jy-isle .lbl { display: none; }

/* One horizontal information panel with two clearly separated columns. */
.jy-meta {
  width: min(1060px, calc(100vw - 112px));
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start; justify-items: stretch; gap: 32px;
  padding: 22px 26px; box-sizing: border-box;
  border: 1px solid rgba(185,168,255,.18); border-radius: 20px;
  background: linear-gradient(110deg, rgba(20,23,45,.9), rgba(13,15,32,.88));
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.jy-skill-group, .jy-context-group { min-width: 0; display: grid; gap: 13px; }
.jy-skill-group > .jy-lab { color: #99CFBE; }
.jy-skill-group .jy-skills { justify-content: flex-start; gap: 8px; }
.jy-context-group { border-left: 1px solid rgba(185,168,255,.2); padding-left: 32px; align-self: stretch; }
.jy-meta .jy-credentials { border: 0; margin: 0; padding: 0; justify-items: start; gap: 13px; }
.jy-meta .jy-credentials .jy-certs { justify-content: flex-start; gap: 12px 20px; }
.jy-meta .jy-credentials .jy-certs li { max-width: 100%; }
.jy-meta .jy-credentials.courses .jy-certs { display: grid; gap: 12px; }
.jy-meta.solo { grid-template-columns: 1fr; width: fit-content; max-width: calc(100vw - 112px); }
.jy-meta.solo .jy-skill-group { justify-items: center; }
.jy-meta.solo .jy-skills { justify-content: center; }
@media (max-width: 760px) {
  .jy-meta { width: calc(100vw - 44px); grid-template-columns: 1fr; padding: 16px 18px; gap: 20px; border-radius: 16px; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .jy-context-group { border-left: 0; padding-left: 0; border-top: 1px solid rgba(185,168,255,.2); padding-top: 18px; }
  .jy-skill-group, .jy-meta .jy-credentials { gap: 10px; }
  .jy-skill-group .jy-skills { gap: 6px; }
  .jy-meta .jy-credentials .jy-certs { gap: 10px 14px; }
  .jy-meta .jy-credentials.courses .jy-certs { gap: 9px; }
  .jy-meta.solo { max-width: calc(100vw - 44px); }
}
@media (max-height: 700px) and (max-width: 760px) {
  .jy-meta { padding: 12px 14px; gap: 14px; bottom: 48px; }
  .jy-context-group { padding-top: 12px; }
  .jy-credentials .jy-certs small { display: none; }
}

/* Both columns share a heading baseline and a consistent first content row. */
.jy-skill-group, .jy-context-group, .jy-meta .jy-credentials { align-content: start; }
.jy-meta .jy-lab { font-size: .6875rem; line-height: 1.4; }
.jy-meta .jy-credentials .jy-certs { align-items: center; }


/* A visible leading point for the scroll-driven light trail. */
.jy-traveler { pointer-events: none; }
.jy-traveler .aura { fill: #8FF3FF; opacity: .45; filter: url(#jy-glow); }
.jy-traveler .ring { fill: rgba(143,243,255,.14); stroke: #8FF3FF; stroke-width: 1; }
.jy-traveler .core { fill: #F4FDFF; filter: drop-shadow(0 0 4px #8FF3FF); }

/* Phones and touch screens: fewer always-on effects so scrolling stays smooth.
   Only the island in view keeps its gentle bob; blurs and filters that repaint every frame are dropped. */
@media (max-width: 760px), (pointer: coarse) {
  .jy-isle > svg, .jy-portrait, .jy-isle > svg.jy-trophy, .jy-lg, .jy-orbit-light, .jy-base-aura, .jy-portal b { animation: none; }
  .jy-isle.cur > svg, .jy-isle.cur .jy-portrait { animation: jy-bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .jy-thread .glow { filter: none; opacity: .25; }
  .jy-traveler .aura { filter: none; }
  .jy-neb { filter: blur(36px); }
  .jy-meta { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(110deg, rgba(20, 23, 45, .97), rgba(13, 15, 32, .96)); }
  .jy-skills li { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 16, 48, 0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .jy-isle.cur > svg, .jy-isle.cur .jy-portrait { animation: none; }
}
