/* One continuous landscape for the scroll-driven career journey. */
.career-journey { --journey-offset: 80px; position: relative; width: 100%; background: #0d1117; color: #e6edf3; isolation: isolate; overflow-x: clip !important; overflow-y: visible; }
.journey-intro { position: absolute; top: 24px; left: 0; z-index: 4; display: flex; align-items: end; justify-content: center; width: 100%; height: 220px; padding: 0 16px; isolation: isolate; pointer-events: none; }
.journey-cloud-word { position: absolute; top: 0; left: 50%; transform: translateX(-50%); color: #b7bcc2; font: 900 14rem/.9 Inter, Arial, sans-serif; letter-spacing: 0; opacity: .23; filter: blur(12px); pointer-events: none; user-select: none; }
.journey-intro h2 { position: relative; margin: 0; color: #aeb4bc; font: 500 .8rem/1.5 'JetBrains Mono', monospace; text-align: center; }
.journey-scene { position: relative; width: 100%; height: max(360px, calc(100svh - var(--journey-offset))); overflow: hidden; background: #0d1117; }
.journey-view { position: absolute; inset: 0; overflow: hidden; }
.journey-view::after { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, #0d1117 0%, rgba(13,17,23,.93) 10%, transparent 38%, transparent 75%, #0d1117 100%); content: ''; }
.journey-stage { position: absolute; bottom: 0; left: 0; width: 100%; aspect-ratio: 3/1; transform: translate3d(var(--camera-x, 0px), var(--camera-y, 0px), 0); }
.journey-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.journey-base { filter: grayscale(1) sepia(1) hue-rotate(168deg) saturate(1.7) brightness(.59); }
.journey-reveal { opacity: 0; filter: saturate(.8) brightness(1.08); mask-image: radial-gradient(ellipse 15% 44% at var(--domain-x) 68%, #000 24%, transparent 100%); transition: opacity .8s ease; }
.journey-reveal.is-active { opacity: 1; }
.journey-reveal[data-domain='0'] { --domain-x: 11%; }
.journey-reveal[data-domain='1'] { --domain-x: 30%; }
.journey-reveal[data-domain='2'] { --domain-x: 50%; }
.journey-reveal[data-domain='3'] { --domain-x: 71%; }
.journey-reveal[data-domain='4'] { --domain-x: 91%; }
.journey-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.journey-label { position: absolute; top: var(--label-top, 42%); left: 0; visibility: hidden; }
.journey-label span { display: block; width: max-content; font: 800 3rem/1.15 Inter, Arial, sans-serif; letter-spacing: 0; color: #c5c8cd; background: linear-gradient(to top, rgba(157,162,170,.08), #aeb4bc 50%, #e4e5e7 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; transform: translate(-50%, 0); mask-image: radial-gradient(circle at 1px 1px, #000 .7px, rgba(0,0,0,var(--grain-fill,1)) 1.4px); mask-size: 3px 3px; }
.journey-label.is-active { visibility: visible; }
.journey-label.is-active span { opacity: 1; transform: translate(-50%, 0); }
.journey-pinned .journey-label.is-active span { will-change: transform, opacity, filter; }
.journey-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey-fallback { margin: 0; background: #0d1117; }
.journey-fallback img { display: block; width: 100%; height: auto; filter: grayscale(1) sepia(1) hue-rotate(168deg) saturate(1.7) brightness(.59); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent); }
.journey-fallback p { padding: 0 1rem 1rem; color: #aeb4bc; text-align: center; font-size: 1rem; }
.journey-static .journey-scene { height: 460px; }
.journey-static .journey-labels { display: flex; flex-wrap: wrap; align-content: start; justify-content: center; gap: .7rem 1.6rem; padding: calc(var(--intro-bottom, 220px) + 24px) 1rem 0; }
.journey-static .journey-label { position: static; visibility: visible; }
.journey-static .journey-label span { font-size: 1.35rem; opacity: 1; transform: none; filter: none; mask-image: none; }
.journey-static .journey-reveal { display: none; }

/* Fade the existing contact glow into the exact same ground color. */
#contact.section-gradient-glow::after { inset: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 40%, #0d1117 94%); filter: none; opacity: 1; }
#career-journey { margin-top: -64px; padding-top: 48px; background: transparent; }
#career-journey .journey-scene { background: transparent; }
#career-journey .journey-view { mask-image: linear-gradient(to bottom, transparent, #000 160px); }
#career-journey + footer { border-top: 0; background: #0d1117; }
#career-journey + footer::before { display: none; }

/* The live Mac window keeps its own chrome and content. */
.mac-depth-perspective { perspective: 1600px; perspective-origin: 50% 10%; }
#mac-window .mac-window { transform-origin: 50% 0%; }
.mac-window.mac-depth-moving { will-change: transform; }
.mac-window-fullscreen { transform: none !important; will-change: auto !important; }
.mac-hint-signal { position: absolute; bottom: 0; left: 0; display: block; width: 100%; height: min(230px, 28svh); pointer-events: none; opacity: .68; }
#mac-window .mac-window-hint-overlay { height: 100%; }
.mac-window-hint-overlay .hint-content { z-index: 2; }
.mac-window-fullscreen .mac-hint-signal { display: none; }

@media (max-width: 1200px) {
  .journey-cloud-word { font-size: 10rem; }
  .journey-intro { height: 140px; }
}
@media (max-width: 768px) {
  .journey-cloud-word { font-size: 7rem; filter: blur(9px); }
  .journey-intro { height: 120px; }
  #career-journey { margin-top: -32px; padding-top: 32px; }
  .journey-label span { font-size: 2.25rem; }
  .mac-depth-perspective { perspective: 1200px; }
  .journey-static .journey-scene { height: 360px; }
}
@media (max-width: 560px) {
  .journey-cloud-word { top: 0; font-size: 3.6rem; filter: blur(7px); opacity: .3; }
  .journey-intro { height: 90px; }
  .journey-intro h2 { font-size: .63rem; }
  .journey-label span { font-size: 2rem; }
  .journey-static .journey-label span { font-size: 1.1rem; }
}
@media (max-height: 450px) {
  .journey-static .journey-scene { height: 320px; }
}
@media (max-height: 700px) and (min-width: 769px) {
  .journey-cloud-word { font-size: 10rem; }
  .journey-intro { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .career-journey *, #mac-window .mac-window { transition: none !important; }
  #mac-window .mac-window { transform: none !important; }
}
